And now, the vagrancies of HTTP Post... I have a piece of code that posts data to a form... when I test with my own form, it works great... but, when I test with another form (LA Public Library search form) I get back an error 302 "page has moved temporarily" with a link to the (valid) results page. what's up with that?? why would the server give me 302 instead of the result page? the POST I'm feeding it looks like:
POST /cgi-bin/cw_cgi?doSearch+15607 HTTP/1.0
Referer:
User-Agent: php-HTTP_POST/1.0
Host: catalog.lapl.org
Content-type: application/x-www-form-urlencoded
Content-length: 73
Search=Search&terms=jamie%20jensen%20road%20trip%20usa&searchtype=Keyword
and the result from their server:
HTTP/1.1 302 Moved Temporarily
Date: Tue, 19 Dec 2000 04:01:51 GMT
Server: Apache/1.2.6
Pragma: no-cache
Location: http://catalog.lapl.org:80/cgi-bin/cw_cgi?resultsScreen+15607+1+1+12
Connection: close
Content-Type: text/html
Moved Temporarily
The document has moved here.
['here' is a hypertext link to that Location: above, which has the correct search results.]
On a related question-- is there a way to "spy" on exactly what IE sends when it posts form data? How can I sniff the HTTP packets going back and forth on my machine?
-E