icculus12
asked on
How to post an xml document?
I have a url that I need to post an XML document to, not sure how to proceed. Any help is appreciated.
Andy
Andy
ASKER
Ok, I gave the POST program a try, executed the command as follows:
POST -c text/xml https://url_to_xml_parser_app_here.asp
then input the xml content and got this result:
<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
501 Protocol scheme 'https' is not supported
</BODY>
</HTML>
Looks like the fact that the server is secure is causing problems with POST... Any ideas of a workaround or alternative solutions available?
Thanks,
Andy
POST -c text/xml https://url_to_xml_parser_app_here.asp
then input the xml content and got this result:
<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
501 Protocol scheme 'https' is not supported
</BODY>
</HTML>
Looks like the fact that the server is secure is causing problems with POST... Any ideas of a workaround or alternative solutions available?
Thanks,
Andy
You'll get that error if you do not have the encryption libraries installed.
Are you on Windows and using ActivePerl or are you on something else?
Are you on Windows and using ActivePerl or are you on something else?
ASKER
I am on a Linux server with Perl 5.6.0 - which libraries do I need? Do I need to execute any special commands or does the mere presence of the enc. library allow it to work with https?
Thanks,
Andy
Thanks,
Andy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
/usr/local/bin/lwp-request
/usr/local/bin/POST
/usr/local/bin/GET
/usr/local/bin/HEAD
Take a look at the manpage for it
http://search.cpan.org/~gaas/libwww-perl-5.76/bin/lwp-request
This would be a way, with essentially no programming, to do this upload task.