Having trouble accessing WebDAV server through a proxy

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I'm trying to get at a WebDAV server that is behind a proxy and there
doesn't seem to be any way of doing this using the HTTP::DAV module in
perl.   Here is the code I am using:

    use strict;
    use warnings;

    use HTTP::DAV;

    my $browser = new HTTP::DAV;
    my $url = 'https://domain.name/webdav ';

    $browser->credentials(  -user =>'<username>', -pass =>
                        -url =>$url, -realm=>'WebDAVRealm');

    # The following two lines don't work, since HTTP::DAV doesn't
    #  proxies for WebDAV connections (yet).
    # $browser->proxy(['https','http','gopher','ftp','ssl'], 'http://
    # $browser->no_proxy('localhost', '');

    $browser->open( -url=>$url )
            or die("Couldn't open $url: ".$browser->message . "\n");

I tried setting the environmental variable http_proxy using "export
http_proxy=http://remote.server.com:8181 " but that didn't seem to
help.  I can access this remote server using telnet.  I've also
accessed the WebDAV server easily using Firefox and a freeware
application called BitKinex that allows you to add proxy settings to
its configuration.

Does anyone have a solution to this?

Site Timeline