Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2865
| From | 7stud -- <bbxx789_05ss@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: HTTP request, with headers, post data and SSL :( |
| Date | 2011-04-14 12:56 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <0cfccd79e95056977aef1235d17dbb75@ruby-forum.com> (permalink) |
| References | <cc8c045fb2e91f082249ef47f97aaec8@ruby-forum.com> <37358189582d77c8623a61e4263aa893@ruby-forum.com> |
Stuffe L. wrote in post #992713: > @7stud, I copied the code out of a function and tried to simplify it for > you guys to read :) But I must have forgot what you said. > But if you do as in your example, the contents of the data variable will > be send as a part of the query string no? No. This line: resp = http.post(url.path, data, headers) tells ruby to send a *post* request. POST requests do not include data in the query string--they put the data in the body of the request. The data still has to be in an agreed upon format, though, otherwise the other side won't know how to split it up to make sense of the data. -- Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Find similar | Unroll thread
HTTP request, with headers, post data and SSL :( "Stuffe L." <stuffe.dk@gmail.com> - 2011-04-13 14:11 -0500
Re: HTTP request, with headers, post data and SSL :( Oscar Sosa <oscar.americo@gmail.com> - 2011-04-13 18:28 -0500
Re: HTTP request, with headers, post data and SSL :( 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-13 18:44 -0500
Re: HTTP request, with headers, post data and SSL :( "Stuffe L." <stuffe.dk@gmail.com> - 2011-04-14 03:33 -0500
Re: HTTP request, with headers, post data and SSL :( 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-14 12:56 -0500
csiph-web