Re: Retrieving response headers from an off-site page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/31/06, Ray Hauge <ray.hauge@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
On Monday 31 July 2006 17:36, John Gunther wrote:
> I'm trying to programatically retrieve a sales tax lookup page using
> file_get_contents() but the page doesn't return data unless a session id
> is first retrieved and then supplied.
>

I deal with screen-scraping a lot at work.  I would suggest using cURL to
store the cookie data, and then subsequently get the data you need.



I can also recommend wget, a GNU utility.  It doesn't have a PHP
interface like cURL, but it's great for standalone http GETs with
cookies and form data.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux