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

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top