in reply to Re^4: How to download or run exe file using rest client.
in thread How to download or run exe file using rest client.

EXACT ERROR "missing filename header".

  • Comment on Re^5: How to download or run exe file using rest client.

Replies are listed 'Best First'.
Re^6: How to download or run exe file using rest client.
by poj (Abbot) on Mar 20, 2019 at 13:08 UTC

    What does running this show ?

    #!perl use strict; use warnings; use LWP::UserAgent(); printf "%s Perl %s LWP %s\n\n",$^O,$^V,$LWP::VERSION; my $url = 'URL'; my $ua = LWP::UserAgent->new; my $resp = $ua->head($url); print $resp->as_string;
    poj

      Hi Poj, Thanks for the reply.
      Result of the asked program

      MSWin32 Perl v5.14.2 LWP 6.03 400 URL must be absolute Content-Type: text/plain Client-Date: Wed, 20 Mar 2019 14:20:34 GMT Client-Warning: Internal response 400 URL must be absolute

      Regards.

        Did you use your url, not 'URL' ?

        my $url = 'http://server_address:port/ws/1/console/webstart?full=true' +;
        poj