When I turn on:
:debug true
:debug-body true
I get all that follows. Which mostly looks right, I guess. But why
don't I see the headers in Charles?
I'll go back to assuming this is a problem with Omniture, but I would
be grateful if anyone could glance over this output and tell me if
anything looks amiss. I took out the username and password but
otherwise left in all the details.
{:scheme :https,
:http-url
"
https://api2.omniture.com/admin/1.3/rest/?
method=Report.QueueOvertime",
:conn-timeout 4000,
:debug-body true,
:request-method :post,
:query-string "method=Report.QueueOvertime",
:content-type :json,
:uri "/admin/1.3/rest/",
:server-name "
api2.omniture.com",
:headers
{"accept-encoding" "gzip, deflate",
"accept" "application/json",
"content-type" "application/json",
"x-api-version" "2",
"x-wsse"
"UsernameToken Username=\"xxx\", PasswordDigest=\"xxx\", Nonce=
\"Y2FiOGM3YjAxY2QyY2YwMTdmZTY2YTIzNzNjNzU2OWI=\", Created=
\"2013-02-23T16:40:14Z"},
:socket-timeout 4000,
:debug true,
:body-type org.apache.http.entity.StringEntity,
:server-port nil,
:character-encoding "UTF-8",
:client-params
{"http.useragent" "clj-http",
"http.protocol.allow-circular-redirects" false},
:body
"{\"reportDescription\" : {
\"reportSuiteID\" : \"timeoutny\",
\"dateFrom\" : \"2013-02-01\",
\"dateTo\" : \"2013-02-12\",
\"dateGranularity\" : \"hourly\",
\"metrics\" : [
{
\"id\" : \"pageViews\"
},
{
\"id\" : \"visits\"
}
],
\"validate\":\"true\"
}
}",
:user-info nil}
HttpRequest:
{:requestLine
#<BasicRequestLine POST
https://api2.omniture.com/admin/1.3/rest/?method=Report.QueueOvertime
HTTP/1.1>,
:protocolVersion #<HttpVersion HTTP/1.1>,
:params
#<BasicHttpParams org.apache.http.params.BasicHttpParams@47b0081>,
:method "POST",
:entity #<StringEntity org.apache.http.entity.StringEntity@117eb1bd>,
:class org.apache.http.client.methods.HttpPost,
:allHeaders
[#<BasicHeader Connection: close>,
#<BasicHeader accept-encoding: gzip, deflate>,
#<BasicHeader accept: application/json>,
#<BasicHeader content-type: application/json>,
#<BasicHeader x-api-version: 2>,
#<BasicHeader x-wsse: UsernameToken Username="xxx",
PasswordDigest="xxx",
Nonce="Y2FiOGM3YjAxY2QyY2YwMTdmZTY2YTIzNzNjNzU2OWI=",
Created="2013-02-23T16:40:14Z>],
:aborted false,
:URI
#<URI
https://api2.omniture.com/admin/1.3/rest/?method=Report.QueueOvertime>}
Sadly, Omniture doesn't offer any support service, so I am not able to
contact them directly and get any help from them. (They have support
contracts that cost many thousands of dollars, but my company would
not be interested in that kind of expense.)
{:trace-redirects
["
https://api2.omniture.com/admin/1.3/rest/?
method=Report.QueueOvertime"],
:request-time 1064,
:status 401,
:headers
{"date" "Sat, 23 Feb 2013 21:40:15 GMT",
"server" "Omniture AWS/2.0.0",
"www-authenticate"
"WSSE realm=\"Omniture REST Api\", profile=\"UsernameToken\"",
"xserver" "www336",
"content-length" "46",
"content-type" "application/json",
"connection" "close"},
:body "{\"error\":\"Unable to validate authentication.\"}"}
nil
Request: org.apache.http.entity.StringEntity
On Feb 23, 4:18 pm, larry google groups <
lawrencecloj...@gmail.com>
wrote: