HTTP Post Request to a servlet


#1

hi,

i have to pass parameters to a Login servlet using ruby on rails at the
URL(intranet)
http://172.16.3.156:9090/crmserver/servlets/mobile/MobileLoginServlet

and have to write following on output stream :–>

“0\badmin\badmin”

\b is delimitor & admin is username and password

0 is the command id for login

i m not able to get what to do… any suggestions or help which i can
refer to ?

Thanks


#2

Try Net::HTTP?
http://ruby-doc.org/core/classes/Net/HTTP.html

On Feb 16, 12:43 am, Hector D. removed_email_address@domain.invalid


#3

Jeff Emminger wrote:

Try Net::HTTP?
http://ruby-doc.org/core/classes/Net/HTTP.html

On Feb 16, 12:43�am, Hector D. removed_email_address@domain.invalid

Thanks for the link… that solved the problem :slight_smile: