From: Klesh Wong Date: 2008-10-17T16:13:48+09:00 Subject: [ruby-core:19365] [Bug #655] Query part lost when using Net::HTTP.post_form function Bug #655: Query part lost when using Net::HTTP.post_form function http://redmine.ruby-lang.org/issues/show/655 Author: Klesh Wong Status: Open, Priority: Normal when posting data by following code: require 'net/http' require 'uri' response = Net::HTTP.post_form URI.parse('http://localhost/api.asp?Action=Check'), {'name'=>'value'} puts response.body query part ("Action=Check" in this case) are not attached. server side receive a request /api.asp without query. problem could be solved by simple change post_form code: req = Post.new(url.path) to req = Post.new(url.request_uri) i'm not sure it is a bug or i mis-understand, if i do, is there anyway to post form with query, for i need to deal with some Third Part API. ---------------------------------------- http://redmine.ruby-lang.org