From: FreeMan Date: 2002-04-05T01:11:59+09:00 Subject: [net/http] how to post form data ? here is what i do : --BEGIN-- require 'net/http' include Net $host = 'localhost' $path = '/test.php' HTTP::Proxy($proxy_addr,$proxy_port).start($host) { |http| $topost = 'b=2' puts 'posting : '+$topost response , = http.post($path,$topost) puts response.body } --END-- test.php is a simple php script that shows all the GET/POST variables the output of the script is : --BEGIN-- posting : b=2 Array ( ) Array ( ) --END-- what's wrong ? thx -- FreeMan /-- | "The concept of progress acts as a protective mechanism | to shield us from the terrors of the future." |Frank Herbert. Dune \--