PHP Classes

Proxy

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Proxy  >  (Un) Subscribe thread alerts  
Subject:Proxy
Summary:Send post request via a proxy
Messages:4
Author:Benjamin Boigienman
Date:2005-05-10 10:07:48
Update:2006-01-25 15:53:38
 

  1. Proxy   Reply   Report abuse  
Picture of Benjamin Boigienman Benjamin Boigienman - 2005-05-10 10:07:48
How to send a request via a proxy server ?

Thank you.

  2. Re: Proxy   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-05-10 17:07:28 - In reply to message 1 from Benjamin Boigienman
You can either set the class variables proxy_host_name and proxy_host_port, or set the arguments ProxyHostName and ProxyHostPort of the Open class call as demonstrated in the test_http.php example.

  3. two questions about your class   Reply   Report abuse  
Picture of baj djordj baj djordj - 2006-01-25 11:34:48 - In reply to message 2 from Manuel Lemos
I think this is a great php class but my knowledge of php are not so perfect as yours. So I would like to ask how exactly I can send a request to any page in intnernet with some arguments?

For example I have a form with any input fields and submit buton. So what is the exact syntax of sending this fields and thier values using your class?

And second question - I would like to use your class to make connection trough proxy server and this way to stay invisible while I'm opennig internet pages. But your class shows the html tags of the page and how to make it to show the parsed content of the page? I.e I would like when to set any proxy server and any url and when I start script using your class to pass trough this proxy and to see the real content of this url(page) (not the html code)

Is this possible?
Thank you very much in advance,
Best regards

  4. Re: Proxy   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2006-01-25 15:53:38 - In reply to message 3 from baj djordj
You can submit forms using the POST method and the PostValues specify the form field values. Take a look at the test_http_post.php example.

You can use a proxy setting the ProxyHostName argument. Take a look at the test_http.php example.