HTTP::DAV module errors - can't access URL


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting HTTP::DAV module errors - can't access URL
# 1  
Old 11-30-2014
HTTP::DAV module errors - can't access URL

Hello, I am attempting to use the HTTP/DAV module in perl, and I have a script that transfers files to a website. However, I get the following error message:

Code:
"Couldn't open https://www.thisismyurl.com/DAV: 
The URL "https://www.thisismyurl.com/DAV" is not DAV enabled or not accessible."

I'm not really sure why it's not able to access the site. I am doing this on a MacBook Pro with Mavericks. I'm able to establish a connection to this site with Cyberduck using the same credentials. Here is the relevant part of the script (obviously I've changed the URL, username, and password):

Code:
#!/usr/bin/perl
use strict;
use warnings;
use HTTP::DAV;

my $d = HTTP::DAV->new(); 
my $url = "https://www.thisismyURL.com/DAV";

$d->credentials( -user=>"username", -pass=>"password", -url=>$url );

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

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk script to find time difference between HTTP PUT and HTTP DELETE requests in access.log

Hi, I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log. Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies

2. Solaris

Why I cannot access internet from Solaris guest using url?

Hi all, I'm using virtualbox bridged adapter Host:Windows 7 Guest: Solaris 11 while I can ping between the host and guess, I cannot access the Internet from the solaris guest. here's my settings: while I can ping 173.194.38.128 (which is actually google.com), I cannot ping... (3 Replies)
Discussion started by: jediwannabe
3 Replies

3. Shell Programming and Scripting

File download from HTTP::DAV

Hi, I have DOX server. I have to download latest file using HTTP:: DAV. at present am using get method with file name ABC*, it downloads all the files. But I need to download only latest file. Any help?? Thanks, Raja. (0 Replies)
Discussion started by: smr_rashmy
0 Replies

4. Shell Programming and Scripting

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (4 Replies)
Discussion started by: senkerth
4 Replies

5. Programming

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (0 Replies)
Discussion started by: senkerth
0 Replies

6. Shell Programming and Scripting

stripping http and https from a url using sed

I have to write a sed script which removes http and https from a URL. So if a URL is https://www.example.com or Example Web Page, script should return me Example Web Page i tried echo $url | sed 's|^http://||g'. It doesn't work. Please help (4 Replies)
Discussion started by: vickylife
4 Replies

7. HP-UX

errors while compiling c++ module

hello everyone, here i attempting to compile a c++ module . I am using the following command make -d dummyCHARGP. i am using the gcc compiler .my os is HP-UX 11.11. here i am getting the following errors. errors: ======= /swtemp/usbs/cc/unix-ce/root/subsys/include/main.h:146:... (1 Reply)
Discussion started by: mannam srinivas
1 Replies

8. Solaris

Access Solaris machine over http by hostname

Hi all, I need to be able to connect to the web server enabled on my solaris box by hostname e.g. http://<hostname_of_solaris_box>. How can I achieve this? I am able to access the web server via the IP of the solaris box but not the hostname. Any help or pointers would be appreciated. ... (1 Reply)
Discussion started by: dpillay
1 Replies

9. UNIX for Advanced & Expert Users

Coomand to download from HTTP(URL)

Hi, What is the UNIX command to download a file or data from HTTP location. CURL(Linux) did not work. Thank You (4 Replies)
Discussion started by: skm123
4 Replies
Login or Register to Ask a Question