Peng Yu
2018-02-09 15:30:01 UTC
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
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/m
Regards,
Peng
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/m