[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] How to intercept wget to extract the raw requests and the raw
From: |
Peng Yu |
Subject: |
[Bug-wget] How to intercept wget to extract the raw requests and the raw responses? |
Date: |
Fri, 9 Feb 2018 22:28:13 -0600 |
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
- [Bug-wget] How to intercept wget to extract the raw requests and the raw responses?,
Peng Yu <=