|
|
Question : Post XML file to HTTPS web-service using Perl
|
|
Hello
I need to post an XML file to an awaiting web-service across an HTTPS connection.
I've been trying using both cURL and LWP::UserAgent/HTTP::Request with no joy.
When I try using cURL, I get a response from the other end saying that 'Request format is invalid', so I've tried using LWP::UserAgent/HTTP::Request, but can't get it working. I have SSLeay working with OpenSSL, so there shouldn't be any problems there.
Can someone give me a working example of how this should be done, using either method, or even some other way.
Thanks
|
Answer : Post XML file to HTTPS web-service using Perl
|
|
> System.InvalidOperationException: Request format is invalid: text/xml. obviously you need to specify a proper content type
|
|
|
|
|