Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Net::HTTP - POST and GET in the same request
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Enrique Comba Riepenhausen, post: 4561144"] The x=y become POST variables and the {'A'=>'1' ...} drop out of the That is true, my typo... OOOOPsssss I'm sorry, my fault! Try this: http = Net::HTTP.new('domain.com') response = http.post('/script.asp', 'x=y') content = response.body The {} sets header fields if you take a closer look at the post request itself you will see them there. Cheers, ---- Enrique Comba Riepenhausen [email]ecomba@mac.com[/email] I always thought Smalltalk would beat Java, I just didn't know it would be called 'Ruby' when it did. -- Kent Beck [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Net::HTTP - POST and GET in the same request
Top