Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Net::HTTP and POST Data

Reply
Thread Tools

Net::HTTP and POST Data

 
 
Evan DiBiase
Guest
Posts: n/a
 
      11-11-2005
Hi!

Has anyone run into trouble using 1.8.3 (Cygwin, on Windows,
specifically) and Net::HTTP's POST functionality?

It used to be that code like the following would pass the parameter
"foo" with the value "bar" to "http://myserver/servlet", but, on the
aforementioned configuration, the servlet (or PHP script; I've tested
both) doesn't seem to get the parameter:

Net::HTTP.start("myserver", 80) { |http| http.post("/servlet",
"foo=bar") }

Does anyone have a clue about what might be wrong? I'm using POST
data (instead of URL encoding) because the server with which I'm
communicating has hard limits on the URL size that I would exceed in
a few cases.

Thanks,
Evan


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading URLs with POST data vs. w/out POST Hal Vaughan Java 4 01-14-2008 12:38 AM
How does a dynamic control load post back data across post back?? =?Utf-8?B?Z29yaWxsYQ==?= ASP .Net 1 05-25-2007 05:02 AM
Post data via the Post method in asp.net? (URGENT) Vishal ASP .Net 1 12-21-2004 06:14 AM
Post post post. Shel-hed Computer Support 2 11-08-2003 07:41 AM
post data, then post again.. JT ASP General 1 09-05-2003 11:14 PM



Advertisments