Forum: Ruby https post with xml data?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0f50b9a2ad85666d537d39bda49327ee?d=identicon&s=25 Jonathan Rochkind (jrochkind)
on 2009-03-26 15:59
I need to post some XML (not form encoded, just raw XML in the body) to
an https url.

I'm having trouble figuring out how to do this with Net::HTTP.   Both
the https issue and the request body issue.

Anyone have any hints or examples?  Thanks!

Jonathan
1bac2e65d64faf472cf2ebc94f0f5ee0?d=identicon&s=25 Ara Howard (ahoward)
on 2009-03-26 17:33
(Received via mailing list)
On Mar 26, 2009, at 8:56 AM, Jonathan Rochkind wrote:

> I need to post some XML (not form encoded, just raw XML in the body)
> to
> an https url.
>
> I'm having trouble figuring out how to do this with Net::HTTP.   Both
> the https issue and the request body issue.
>
> Anyone have any hints or examples?  Thanks!

give up. use restclient.

sudo gem install rest-client


if you really want to know how to do it read the restclient code - it
uses net/http under the hood.

cheers.

a @ http://codeforpeople.com/
2e106811da618c5d96bc3247e8d01f4c?d=identicon&s=25 Stephen Mautrin (smautrin)
on 2009-08-08 07:33
Ara Howard wrote:
>
> give up. use restclient.

Excellent advice. I wish I had stumbled upon it 4 hours earlier...
This topic is locked and can not be replied to.