curl-users
How to intercept curl to extract the raw requests and the raw responses?
From: Peng Yu <pengyu.ut_at_gmail.com>
Date: Fri, 9 Feb 2018 09:30:01 -0600
Date: Fri, 9 Feb 2018 09:30:01 -0600
Hi,
In the following example, `curl` should send an HTTP GET request to httpbin.org.
$ curl -g -sS http://httpbin.org/get
{
"args": {},
"headers": {
"Accept": "*/*",
"Connection": "close",
"Host": "httpbin.org",
"User-Agent": "curl/7.57.0"
},
"origin": "165.91.87.88",
"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 curl 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 ----------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2018-02-09