HTTP in PHP, Part 1: The Request

Posted in PHP and Zend Framework on Wednesday, the 13th of January, 2010.

When I wrote about HTTP for php|architect magazine, one of the topics that I ended up having to skim over for wordcount reasons was that of how to work with HTTP from within PHP.

So here's a quick overview of how to make and manipulate HTTP requests using PHP. I'll hopefully follow this up in due course with a counterpart post dealing with HTTP responses.


Posted by BisonTech on Friday, the 1st of October, 2010.

Not work the referer:
'useragent' => 'Nokia N95',
'referer' => '',

for change the Referer you must use setHeader method, like this:

$client->setHeaders('Referer', '');

bye :D

Enter your comment: