Hi,

In the following example, `wget` should send an HTTP GET request to httpbin.org.

$ wget -qO- http://httpbin.org/get
{
  "args": {},
  "headers": {
    "Accept": "*/*",
    "Accept-Encoding": "identity",
    "Connection": "close",
    "Host": "httpbin.org",
    "User-Agent": "Wget/1.16.3 (darwin13.4.0)"
  },
  "origin": "165.91.48.95",
  "url": "http://httpbin.org/get";
}

The request probably starts with the following lines and I'd like to
see them in the raw request. Is there a way to intercept wget so that
I can see the raw requests as well as the raw responses?

GET /get HTTP/1.1
Host:httpbin.org

PS. I tried the following HTTP proxy, but it can not show the raw request.

https://github.com/abhinavsingh/proxy.py

--
Regards,
Peng

Reply via email to