Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2865
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail |
|---|---|
| From | 7stud -- <bbxx789_05ss@yahoo.com> |
| Newsgroups | comp.lang.ruby |
| Subject | Re: HTTP request, with headers, post data and SSL :( |
| Date | Thu, 14 Apr 2011 12:56:35 -0500 |
| Organization | Service de news de lacave.net |
| Lines | 18 |
| Message-ID | <0cfccd79e95056977aef1235d17dbb75@ruby-forum.com> (permalink) |
| References | <cc8c045fb2e91f082249ef47f97aaec8@ruby-forum.com> <37358189582d77c8623a61e4263aa893@ruby-forum.com> |
| NNTP-Posting-Host | bristol.highgroove.com |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | talisker.lacave.net 1302804154 68554 65.111.164.187 (14 Apr 2011 18:02:34 GMT) |
| X-Complaints-To | abuse@lacave.net |
| NNTP-Posting-Date | Thu, 14 Apr 2011 18:02:34 +0000 (UTC) |
| In-Reply-To | <37358189582d77c8623a61e4263aa893@ruby-forum.com> |
| X-Received-From | This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway |
| X-Mail-Count | 381550 |
| X-Ml-Name | ruby-talk |
| X-Rubymirror | Yes |
| X-Ruby-Talk | <0cfccd79e95056977aef1235d17dbb75@ruby-forum.com> |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.ruby:2865 |
Show key headers only | View raw
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