P
Pat Goebel
I am using Net::HTTP.post_form to post this form information:
{ "form_action" => "pet.do_fight", "mcid" => "9", "level" => "30",
"type" => "fightmonster" }
to this url:
http://neo2.hotornot.com/facebook/p...9599141dd3a1f4b81f46fc52ffb2&cpid=560252&msg=
and while it should be posting to this url when I used a packet sniffer
(because it was not working) it showed me that it was posting only to
this url:
http://neo2.hotornot.com/facebook/pet/
it gives me a 404:
<style>
msg404 {
font-family:Arial,sans-serif;
font-size:24px;
text-align:center;
}
</style>
<div class="msg404">Sorry! This page cannot be found</div>
as well as giving me:
#<Net::HTTPNotFound:0x2b65600>
...what am i doing wrong:
-------------------
require 'net/http'
require 'uri'
spooform = { "form_action" => "pet.do_fight", "mcid" => "9", "level" =>
"30", "type" => "fightmonster" }
fightit =
"http://neo2.hotornot.com/facebook/p...9599141dd3a1f4b81f46fc52ffb2&cpid=560252&msg="
responce = Net::HTTP.post_form(URI.parse(fightit),spooform)
puts responce
{ "form_action" => "pet.do_fight", "mcid" => "9", "level" => "30",
"type" => "fightmonster" }
to this url:
http://neo2.hotornot.com/facebook/p...9599141dd3a1f4b81f46fc52ffb2&cpid=560252&msg=
and while it should be posting to this url when I used a packet sniffer
(because it was not working) it showed me that it was posting only to
this url:
http://neo2.hotornot.com/facebook/pet/
it gives me a 404:
<style>
msg404 {
font-family:Arial,sans-serif;
font-size:24px;
text-align:center;
}
</style>
<div class="msg404">Sorry! This page cannot be found</div>
as well as giving me:
#<Net::HTTPNotFound:0x2b65600>
...what am i doing wrong:
-------------------
require 'net/http'
require 'uri'
spooform = { "form_action" => "pet.do_fight", "mcid" => "9", "level" =>
"30", "type" => "fightmonster" }
fightit =
"http://neo2.hotornot.com/facebook/p...9599141dd3a1f4b81f46fc52ffb2&cpid=560252&msg="
responce = Net::HTTP.post_form(URI.parse(fightit),spooform)
puts responce