LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   302 Error, on a Web Bot (https://www.linuxquestions.org/questions/linux-newbie-8/302-error-on-a-web-bot-618596/)

chochip 02-04-2008 10:41 AM

302 Error, on a Web Bot
 
Hi I'm stuck any help would be great. I'm trying to read data from webpages to use in an RSS style, when the page doesn't have a feed.

I can't determine what is the cause of an error. If i run the script in IE I get results but from the linux webserver cron job, I get a 302 location changed. I've tried substituting to the new location address, but that returns the same.

Here's the header:

Status: 302
HTTP/1.1 302 Found
Connection: close
Date: Mon, 01 Jan 2008 12:44:20 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Location: /Help/Error/?aspxerrorpath=/pp/Default.aspx
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 184

The url is above abbreviated on the domain part.

-----------------------------------------------------------
When I run this file as a user in IE it works fine, but I don't know why? Here's the user output printed by the php script.

-------------------------------------------------------------
HTTP/1.1 200 OK
Connection: close
Date: Wed, 23 Jan 2008 12:34:22 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Set-Cookie: ASP.NET_SessionId=kaoz5dnzhkgdnoimqgbhax45; path=/; HttpOnly
Set-Cookie: LiveEnvBasketId=; expires=Fri, 22-Feb-2008 12:34:22 GMT; path=/
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 34054
-----------------------------------------------------------

I'm hoping its something simple...

Any suggestions would be grate.


All times are GMT -5. The time now is 12:12 AM.