HTTP client to post XML RAW_DATA to restful API

C

Costa Nicolaou

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
 
C

Costa Nicolaou

Brian said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top