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