S
subsume
I have a peculiar problem where I need to submit POST data to a script
which has get variables (script.asp?variable=true)
But Net:HTTP seems to have gone to great lengths to prevent this.
Obviously, its messy and looked down upon but unfortunately I cannot
control this.
Running tests:
body =
Net::HTTP.post_form(URI.parse('http://www.server.net/post.php?x=y'),
{'A'=>'1','B'=>'2','C' => '3'})
puts body.body
which has get variables (script.asp?variable=true)
But Net:HTTP seems to have gone to great lengths to prevent this.
Obviously, its messy and looked down upon but unfortunately I cannot
control this.
Running tests:
body =
Net::HTTP.post_form(URI.parse('http://www.server.net/post.php?x=y'),
{'A'=>'1','B'=>'2','C' => '3'})
puts body.body