curl use proxy
Brought to you by:
wgm001
Originally created by: 13015517713
when I use curl library to view some pages use this proxy, like
curl -x 0.0.0.0:8080 http://www.baidu.com
It will use web_server to handle the seesion. I found it will return empty page by judging m_option.doc_directory_.empty().
I'm confused that why not it parse target page, resend the request to the page and return the content to client ?
Originally posted by: rampageX
Use your network interface ip address or 127.0.0.1 as you proxy ip, not 0.0.0.0
Originally posted by: 13015517713
Maybe it's not the reason.
when recv the GET request, it dirtectly check the doc_directory and return fake page.