Net::HTTP and POST Data


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|"/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.