HTTP_Request question

From: Date: Wed, 09 Oct 2002 01:36:15 +0000
Subject: HTTP_Request question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2459@lists.php.net to get a copy of this message
Hello, I'm building a script to fetch amazon references with associateID included. HTTP_Request works perfectly well for classic urls but I fail to get complex ones like : http://www.amazon.fr/exec/obidos/external-search/402-6440735-3075348?mode=blended&keyword=photo&tag=regardnumeriq-21302 The following (simplified ) bit of code doesn't return anything (except an empty array): function createURL() { $url= $baseURL. "?mode=".$_POST['mode']. "&keyword=".rawurlencode($_POST['keyword']). "&tag=$affiliateID"; return $url; } $req =& new HTTP_Request($url); $req->sendRequest(); // just for control echo $req->getResponseCode(); echo $req->getResponseHeader($headername = null); // get the page echo $req->getResponseBody(); Any ideas ? Thanks in advance Luc

« previous php.pear.general (#2459) next »