alin19 Posted February 2, 2010 Share Posted February 2, 2010 hello i'm trying to mimic that i'm a browser to a website using http_request but i have some problems. can you give me some help? i can't keep the session alive. $req =& new HTTP_Request($firstReq); $req->setMethod(HTTP_REQUEST_METHOD_GET); $req->addHeader("Keep-Alive", 1000); $req->sendRequest(); var_dump($cookie=$req->getResponseCookies()); $req->addCookie($cookie['name'],$cookie['value']); $req->setURL($phoneLink); $req->sendRequest(); var_dump($cookie=$req->getResponseCookies()); var_dump($req->getResponseHeader()); Link to comment https://forums.phpfreaks.com/topic/190686-http_request/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.