curl-and-php
Re: Anchor problem ...
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 14 Apr 2003 13:22:34 +0200 (CEST)
Date: Mon, 14 Apr 2003 13:22:34 +0200 (CEST)
On Fri, 11 Apr 2003, Stéphane PRIN wrote:
> I use curl 7.10.3 with PHP 4.3.0 under debian / apache 1.3.27
>
> i try to get the content of a page but i've not the same result if i call
> the page directly under IE
The site you're talking to may very well attempt to detect what browser that
is being used and then return different contents depending on that.
Setting a user-agent string that looks like IE would be a good start.
> $url = "http://www.emc-consulte.com/accueil?show=aide#Recherche_simple";
> //$url = "http://www.emc-consulte.com/accueil?show=aide";
The anchor part should be be included in the URL you send to the server.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2003-04-14