in reply to Consuming A Web Service

When trying to act like a browser, you best send the same HTTP headers as the browser. Use something like Wireshark or the Mozilla Live HTTP Headers extension to see what your browser is sending, then send the same from Perl.

What you get back using LWP::Simple likely is JSON. This is also a good format with modules available to convert it to Perl data.

Replies are listed 'Best First'.
Re^2: Consuming A Web Service
by pkupnorth (Novice) on Nov 02, 2016 at 16:28 UTC

    Thanks, Corion.

    Using Mozilla Live HTTP Headers I was able to see the header information being sent. I used that information in combination with the suggestion by NetWallah, below, to send the proper header (Content-Type) information to the web service. I am now getting the same XML back as does my browser.


    Regards,
    pkupnorth