Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > HTTP client to post XML RAW_DATA to restful API

Reply
Thread Tools

HTTP client to post XML RAW_DATA to restful API

 
 
Costa Nicolaou
Guest
Posts: n/a
 
      09-16-2010
Hey

I am trying to find out how to send an XML in string as RAW_DATA to a
RESTful API.

I found out a couple of libraries (Nestful, Restfulclient, curb) but
wasn't able to send the content properly as you'd send it from Rails
Functional tests @request.env['RAW_POST_DATA'] = xml.to_s

Any suggestions?

Costa
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Brian Candler
Guest
Posts: n/a
 
      09-16-2010
Costa Nicolaou wrote:
> Any suggestions?


restclient can do this. Otherwise, just use Net::HTTP directly.
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Costa Nicolaou
Guest
Posts: n/a
 
      09-17-2010
Brian Candler wrote:
> Costa Nicolaou wrote:
>> Any suggestions?

>
> restclient can do this. Otherwise, just use Net::HTTP directly.


Cheers for that

Any examples? although the docs are quite good, it is not clear how to
send the XML string as RAW_DATA
--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: RESTful API for own python application dieter Python 0 02-03-2013 07:25 AM
RESTful API for own python application Julio F Schwarzbeck Python 0 02-02-2013 08:35 PM
Grok vs. Django for RESTful API? TG Python 0 06-24-2012 06:49 PM
HTTP SOAP/HTTP GET/HTTP POST milan_9211 Software 0 01-10-2011 02:10 PM
WCF and RESTful web service that outputs complex XML type (.NET 3.5) Matty J ASP .Net Web Services 0 04-20-2008 01:17 AM



Advertisments