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

后端 未结 2 1981
谎友^
谎友^ 2020-12-15 23:04

I am having trouble getting this to work so any help would be appreciated! Basically, the request.body contains valid XML for the Web Service like so:



        
2条回答
  •  难免孤独
    2020-12-15 23:45

    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.

提交回复
热议问题