Perl Win32::OLE WinHttp(mshttps.pm) cannot download binary

31 Mar

The default for this module is to download the response as Text.

You can change this on about line 421: where it says:

$body = $winhttp_obj->ResponseText();    # This does text only

change it to:

$body = $winhttp_obj->ResponseBody();   # To get binary

Advertisements

One Response to “Perl Win32::OLE WinHttp(mshttps.pm) cannot download binary”

  1. Matt January 27, 2009 at 9:32 pm #

    Thanks a lot for this (and your other mshttps) hint.

    I’d been trying to work out why this wasn’t working for days before I stumbled upon this!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: