Re: How come this doesn't work?
- From: Björn Paetzel <news@xxxxxxxxxx>
- Date: Wed, 11 Apr 2007 13:36:19 +0200
Hey You schrieb:
It just pretty much does the first request which is the post but then
when I tell it to get the other page it doesn't do anything. I made this
code a few seconds ago so I am searching for the answer and I am reading
RFC2616.
Just a few suggestions:
1. Put POSTed form variables in the request body.
2. Specify the correct Content-Type for it (application/x-www-form-urlencoded).
3. Use the "Connection: Keep-Alive" header to be able to do multiple HTTP-Requests on the same connection. (And check whether the server supports this)
4. Supply a correct Content-Length header, so the server knows where the next request starts.
5. Have a look at Net::HTTP instead of doing it manually.
6. Don't post your username and password to a public newsgroup.
;)
.
- References:
- How come this doesn't work?
- From: Hey You
- How come this doesn't work?
- Prev by Date: Re: How come this doesn't work?
- Next by Date: Re: Web Hosting
- Previous by thread: Re: How come this doesn't work?
- Next by thread: Re: How come this doesn't work?
- Index(es):
Relevant Pages
|