Skip to content

Instantly share code, notes, and snippets.

@lynaghk
Last active December 20, 2015 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lynaghk/ba0756eab5d19780d068 to your computer and use it in GitHub Desktop.
Save lynaghk/ba0756eab5d19780d068 to your computer and use it in GitHub Desktop.
Request: org.apache.http.entity.StringEntity
{:scheme :http,
:http-url "http://www.google-analytics.com:80/ga.js",
:follow-redirects false,
:request-method :get,
:query-string nil,
:as :stream,
:uri "/ga.js",
:server-name "www.google-analytics.com",
:headers
{"accept-encoding" "gzip, deflate",
"user-agent"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20100101 Firefox/15.0.1",
"accept-language" "en-us,en;q=0.5",
"proxy-connection" "keep-alive",
"accept"
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"host" "www.google-analytics.com"},
:debug true,
:body-type org.apache.http.entity.StringEntity,
:server-port 80,
:decompress-body true,
:throw-exceptions false,
:character-encoding "UTF-8",
:body
{:streaming false,
:repeatable true,
:contentType #<BasicHeader Content-Type: text/plain; charset=UTF-8>,
:contentLength 0,
:contentEncoding nil,
:content
#<ByteArrayInputStream java.io.ByteArrayInputStream@e49f5f1>,
:class org.apache.http.entity.StringEntity,
:chunked false},
:user-info nil}
HttpRequest:
{:requestLine
#<BasicRequestLine GET http://www.google-analytics.com:80/ga.js HTTP/1.1>,
:protocolVersion #<HttpVersion HTTP/1.1>,
:params
#<BasicHttpParams org.apache.http.params.BasicHttpParams@69de649c>,
:method "GET",
:entity #<StringEntity org.apache.http.entity.StringEntity@b9c2a85>,
:class
clj_http.core.proxy$org.apache.http.client.methods.HttpEntityEnclosingRequestBase$0,
:allHeaders
[#<BasicHeader Connection: close>,
#<BasicHeader accept-encoding: gzip, deflate>,
#<BasicHeader user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20100101 Firefox/15.0.1>,
#<BasicHeader accept-language: en-us,en;q=0.5>,
#<BasicHeader proxy-connection: keep-alive>,
#<BasicHeader accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8>,
#<BasicHeader host: www.google-analytics.com>],
:aborted false,
:URI #<URI http://www.google-analytics.com:80/ga.js>}
Request: org.apache.http.entity.StringEntity
{:scheme :http,
:http-url "http://www.google-analytics.com:80/ga.js",
:follow-redirects false,
:request-method :get,
:query-string nil,
:as :stream,
:uri "/ga.js",
:server-name "www.google-analytics.com",
:headers
{"accept-encoding" "gzip, deflate",
"user-agent"
"curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8x zlib/1.2.5",
"proxy-connection" "Keep-Alive",
"accept" "*/*",
"host" "www.google-analytics.com"},
:debug true,
:body-type org.apache.http.entity.StringEntity,
:server-port 80,
:decompress-body true,
:throw-exceptions false,
:character-encoding "UTF-8",
:body
{:streaming false,
:repeatable true,
:contentType #<BasicHeader Content-Type: text/plain; charset=UTF-8>,
:contentLength 0,
:contentEncoding nil,
:content
#<ByteArrayInputStream java.io.ByteArrayInputStream@4e6e4e67>,
:class org.apache.http.entity.StringEntity,
:chunked false},
:user-info nil}
HttpRequest:
{:requestLine
#<BasicRequestLine GET http://www.google-analytics.com:80/ga.js HTTP/1.1>,
:protocolVersion #<HttpVersion HTTP/1.1>,
:params
#<BasicHttpParams org.apache.http.params.BasicHttpParams@1a1850e5>,
:method "GET",
:entity #<StringEntity org.apache.http.entity.StringEntity@1b88581a>,
:class
clj_http.core.proxy$org.apache.http.client.methods.HttpEntityEnclosingRequestBase$0,
:allHeaders
[#<BasicHeader Connection: close>,
#<BasicHeader accept-encoding: gzip, deflate>,
#<BasicHeader user-agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8x zlib/1.2.5>,
#<BasicHeader proxy-connection: Keep-Alive>,
#<BasicHeader accept: */*>,
#<BasicHeader host: www.google-analytics.com>],
:aborted false,
:URI #<URI http://www.google-analytics.com:80/ga.js>}
kevin@mu:~/work/sasser$ http_proxy=localhost:8080 curl -v http://www.google-analytics.com/ga.js > /dev/null
* About to connect() to proxy localhost port 8080 (#0)
* Trying ::1... % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0connected
* Connected to localhost (::1) port 8080 (#0)
> GET http://www.google-analytics.com/ga.js HTTP/1.1
> User-Agent: curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8x zlib/1.2.5
> Host: www.google-analytics.com
> Accept: */*
> Proxy-Connection: Keep-Alive
>
< HTTP/1.1 200 OK
< Date: Tue, 23 Jul 2013 22:13:24 GMT
< Age: 3652
< pragma: no-cache
< Expires: 0
< x-content-type-options: nosniff
< x-content-type-options: nosniff
< Vary: Accept-Encoding
< Cache-Control: private, max-age=0, must-revalidate
< Content-Type: text/javascript;charset=utf-8
< Last-Modified: Tue, 18 Jun 2013 17:15:47 GMT
< Transfer-Encoding: chunked
< Server: Jetty(7.6.8.v20121106)
<
{ [data not shown]
100 39714 0 39714 0 0 79002 0 --:--:-- --:--:-- --:--:-- 79269* Connection #0 to host localhost left intact
* Closing connection #0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment