Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Having trouble accessing WebDAV server through a proxy

2 views
Skip to first unread message

Nick Woebcke

unread,
Mar 18, 2010, 5:09:17 PM3/18/10
to
Hello,

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:

#!/usr/bin/perl
#
use strict;
use warnings;

use HTTP::DAV;

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

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

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

$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?

0 new messages