How do I post XML to RESTFUL Web Service using Net::HTTP::Post? How do I post XML to RESTFUL Web Service using Net::HTTP::Post? xml xml

How do I post XML to RESTFUL Web Service using Net::HTTP::Post?


Without knowing anything about the service, this is just a guess, but… is the service expecting a specific header that Poster is setting and you aren't?


If I were you, I'd use Wireshark, tcpflow or some other sniffer to look at the exact data Poster and your app are sending, and make sure they're identical. I've seen services that were sensitive to the weirdest things, like whitespace or user agent.