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()); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.