Hi, On Wed, 10 Nov 2004 22:49:20 +0900, Daun Jaun <compsci.isi / gmail.com> wrote: > Hi > Can some one please tell me how to encode the headers(HTTP request) in the call > to HTTP post method > > the signature of post was > > def Net::Http.post( path, query, header ) > > But no where in the manual can i found something about this header > except that its a HASH It's optional. If you want to include additional http headers, like the referer, or the size of the data you are posting, call it like this: result = server.post("/", data, {"Referer" => "http://example.com", "Content-Length" => data.size}) If you don't know if you need to send extra headers, then you probably don't need to :) So just omit them: result = server.post("/",data) HTH, Mark > > Awaiting eagerly for your replies > Bye > Daun Jaun > >