codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  302 Error, on a Web Bot  chocchip at 11:39 on Wednesday, January 23, 2008
 

Hi I'm using some code written by Troy, but 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=/ds/hardware/hardwarebundle/Default.aspx
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 184

*game domain*"/ds/hardware/hardwarebundle"
The url is above abbreviated on the domain part, since I haven't asked their permission.

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

-------------------------------------------------------------
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
-----------------------------------------------------------

Any suggestions would be grate








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: How to open a MS Word document from Javascript
•  Re: Help: Trouble with z-Index and SELECT lists
•  Re: From variable to function?
•  Re: put entire hash into a data structure.
•  302 Error, on a Web Bot
•  A bracket with both !? and ?:
•  Re: Learning Perl
•  Re: adding a single \ to text
•  Re: problem with STDIN func.


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008