Re: FOPEN remote problems..
| From: | _lallous | Date: | Mon, 17 Sep 2001 12:01:17 +0000 |
| Subject: | Re: FOPEN remote problems.. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67585@lists.php.net to get a copy of this message | ||
I tried to get it via CURL but i failed, here's the output:
* Connected to www.800.com (216.88.211.1)
> GET /prod.asp?P=5261 HTTP/1.1
User-Agent: curl/7.8 (win32) libcurl 7.8
Host: www.800.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
* Closing live connection (#0)
I tried with NetVampire (which allow you to specifiy a user agent string),
and I succeeded, here's output:
Connecting to www.800.com ...
Connected to www.800.com [216.88.211.1]
GET /prod.asp?P=5261 HTTP/1.1
Connection: close
Host: www.800.com
Accept: */*
Pragma: no-cache
Cache-Control: no-cache
Referer: http://www.800.com/
User-Agent: Mozilla/4.04 [en] (Win95; I ;Nav)
Cookie: SITESERVER=GUID=5003bed94ac9ead4d5b3fcd703c59b91;
MemRightsChanged=jtalOx==; popup=1
HTTP/1.0 200 OK
Server: Microsoft-IIS/5.0
Date: Mon, 17 Sep 2001 10:58:16 GMT
P3P: policyref="http://www.800.com/w3c/p3p.xml", CP="ADM
DEV CUS TAI STP
UNI STA OUR DSP ALL COR"
Content-Length: 51076
Content-Type: text/html
Cache-Control: private
X-Cache: MISS from gw.inet.gw
Connection: close
Data transfer started
Received 51 076 bytes in 0:00:08 (5 686 bytes/s)
JOB COMPLETED SUCCESSFULLY
I'm not sure then if the problem is with user agent or not....
"Reberrya" <newsphp@aiowt.com> wrote in message
news:20010917061013.44846.qmail@pb1.pair.com...
> Hey all. I'm trying to do a fopen for reading on many different sites and
> web pages. However, I have found that many webpages can not be FOPENed at
> all. For instance, one such example would be
> http://www.800.com/prod.asp?P=5261
>
> I do not understand as I can read from numerous other sites. Why can I
see
> the above site and others in Internet Explorer and Netscape, but PHP is
not
> able to read from that file?
>
> And yes, I can read from many other ASP, JSP, and PHP pages, so this is
not
> the problem that I know of.
>
> Any help appreciated.
>
> Andrew
>
>