Using PHP CURL to get a website through a proxy, how can I know exactly what is being sent through fiddler?

StackOverflow https://stackoverflow.com/questions/12848095

  •  06-07-2021
  •  | 
  •  

Question

I am using CURL along with a proxy provider to get data from certain website, but when I try to make a request fiddler displays information only from the file using CURL and not from the proxy IP that actually makes the main request and brings the data.

How can I do to display what is being sent/received from the proxy request (proxy IP) in fiddler monitor? can I use fsockopen instead?

NOTE: As you may know a proxy is a mediator between the client and the server, in this case I am using CURL to retrieve information using a proxy provider as mentioned before, what I want to display in the Fiddler monitor is the request among the proxy and the requested website and not through the file using CURL which is already displayed.

Thank you.

Was it helpful?

Solution

You'd need access to the proxy server. e.g. given

you -> proxy -> site_you_want

you only have access to the you -> proxy connection, and cannot see what's happening on the proxy -> site_you_want link. That's a whole different machine and tcp connection, which you cannot access from where you're sitting.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top