Welcome Guest, Not a member yet? Register   Sign In
CI Proxy Library - Browser simulator (REST, Cookies and Proxy Support, PURE PHP) [NEW] HTTP Authorization
#3

[eluser]toopay[/eluser]
Uh-Oh! Updated to V 1.0.1

MORE FEATURES(All old feature still there):

1. Get Full HTTP Header.
2. Set Proxy Call.
3. Set Delay HTTP Call.
4. Set user agent.
5. Internal cache (using gzip).
6. Persistent call (processing redirect, either from header or meta)
7. NO CURL OR OTHER FANCY STUFF DEPEDENCIES! PURE PHP.
8. Cookie support.
9. Log and error flag.
Code:
$this->load->library('proxy');
//Set proxy call
$this->proxy->set_proxy('proxy_host',80,'username','password');
$this->proxy->site('twitter.com',TRUE);
//Get rendered HTTP header, for use it as variable,
// put FALSE on second passed param or simple let it blank
$this->proxy->head('codeigniter.com',TRUE);
//Set user agent and delay
$this->proxy->set_delay(5);
$this->proxy->set_useragent($this->session->userdata('user_agent'));
$this->proxy->site('twitter.com',TRUE);
Test or play with it, download Proxy Library on wiki


Messages In This Thread
CI Proxy Library - Browser simulator (REST, Cookies and Proxy Support, PURE PHP) [NEW] HTTP Authorization - by El Forum - 04-15-2011, 02:00 PM



Theme © iAndrew 2016 - Forum software by © MyBB