Jump to content

Http_request


alin19

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.