in reply to Re: How to change Accept-Language header with soap::lite
in thread How to change Accept-Language header with soap::lite

I found this all ready, and have perused quite thoroughly, however have not found anything that lets me know how to change the accept header to remove the multipart/* as I believe that is causing the problem.

But I wall have a look again.

  • Comment on Re^2: How to change Accept-Language header with soap::lite

Replies are listed 'Best First'.
Re^3: How to change Accept-Language header with soap::lite
by burgerc (Novice) on Dec 19, 2013 at 18:16 UTC
    Sorry this was in responce to your first reply. How would I use LWP:UserAgent in my code listed below.
    #!/usr/local/bin/perl -w use SOAP::Lite 'trace', 'debug', on_action => sub {sprintf '%s/%s', @_ +}; use SOAP::Transport::HTTP; my $client = SOAP::Lite ->readable(1) ->uri('https://www.venturetest.com') ->proxy('https://www.venturetest.com/getpdfservice/testgetpdf.asmx +') ; $client->TestGetPDF();
      I have tried something like this
      $client->transport->default_header('Accept-Encoding' => '');
      but doesn't seem to do anything.

      the error from .net is

      HTTP Error 406 - Client browser does not accept the MIME type of the requested page.
      Internet Information Services (IIS)

        lol