From: Jim Menard Date: 2001-12-22T13:35:02+09:00 Subject: [ruby-talk:29291] Re: HTTP POST When I use resp = http.post2(PING_SERVER_URL + "?" + data, nil, nil) which is the "mystery code" that works, that is the only time I get data. Notice that I am using POST but tagging the "?a=b&c=d" on to the end of the URL. Here is what was sent: POST /PingServer/Ping?PingRequestXML=[snip]&action=[snip] HTTP/1.1 Host: localhost Here is what I receive (the correct results): HTTP/1.1 200 OK Date: Sat, 22 Dec 2001 04:23:08 GMT Server: Apache/1.3.22 (Unix) mod_jk mod_ssl/2.8.5 OpenSSL/0.9.6a PHP/4.0.6 Set-Cookie2: JSESSIONID=kn5q0r4ra1;Version=1;Discard;Path="/PingServer" Set-Cookie: JSESSIONID=kn5q0r4ra1;Path=/PingServer Servlet-Engine: Tomcat Web Server/3.2.3 (JSP 1.1; Servlet 2.2; Java 1.3.1-internal; FreeBSD 4.4-STABLE i386; java.vendor=Sun Microsystems Inc.) Transfer-Encoding: chunked Content-Type: text/xml 239 [...snipped...] 0 Jim -- Jim Menard, jimm@io.com, http://www.io.com/~jimm/ "$665.95: The Retail Price of the Beast" -- Unknown