Wget-Forbidden error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Wget-Forbidden error
# 1  
Old 06-15-2010
PHP Wget-Forbidden error

Hi ,

I am using shell script to connect to a https site and download all the files in a directory.

eg:
wget --no-check-certificate -r -np --user=<username> --password=<passwd> -O temp.txt https:<website>/<dirname>

Error :
HTTP request sent, awaiting response... 403 Forbidden
07:40:20 ERROR 403: Forbidden.

my requirement is to connect to the website and get few files in a dir.The filenames contain timestamp.so, i retrieve all the filenames from the website and get the list of filenames i want and use them with Wget to retrieve the files. I am doing all these as WGEt doesnt support wild card characters.

Any help is appreciated ..

ManyThanks,
Mohan
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Wget - working in browser but cannot download from wget

Hi, I need to download a zip file from my the below US govt link. https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP I only have wget utility installed on the server. When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 Replies

2. Shell Programming and Scripting

Wget-403-Forbidden-Error

Hi Friends, I did an extensive search over the internet and tried all possible solutions that were recommended, but couldn't figure this out. Please see this link http://www.dli.gov.in/data6/upload/0159/808/PTIFF/00000007.tif It works. But, when I try the following command wget -r... (7 Replies)
Discussion started by: jacobs.smith
7 Replies

3. Web Development

Directory index forbidden by Options directive error on specific directory with indexing disabled

I am seeing the following error appear numerous times in my Apache error log: I have my Apache config configured as below, so I would expect indexing not to occur on this directory as it falls under the parent /web directory. Strangely all the IP address, including this example, all... (5 Replies)
Discussion started by: crmpicco
5 Replies

4. UNIX for Dummies Questions & Answers

Script to if webpage is: forbidden, Error...

I have a file with about 29,000 website names. I would like to find a script that would test if each website name is current/active or not. If not it should check if the page is: Forbidden, 404 Error... (1 Reply)
Discussion started by: dcovnton
1 Replies

5. Web Development

forbidden error when accessing file(s) on a unix filesystem

greetings, i was recently asked to install apache1.3.31 on an aix5.3 server so users could have access to their output files. these two directories are nfs filesystems served by a netapp filer mounted on the aix machine. i've made no changes to the apache config and it's running as it came out of... (0 Replies)
Discussion started by: crimso
0 Replies

6. UNIX for Dummies Questions & Answers

wget error

Hello I am getting the following error please help me out as why I am unable to get wget command right. oracle@host:/home/oracle>wget /usr/lib/dld.sl: Unresolved symbol: libintl_bindtextdomain (code) from wget Abort(coredump) Thanks (15 Replies)
Discussion started by: ronick11
15 Replies

7. Shell Programming and Scripting

IFrames error using wget

Hi all, I am trying to connect to a apache server via wget, to automatically download and manipulate few reports. wget -O partner_log --user-agent='Mozilla/5.0' --keep-session-cookies --save-cookies partner_cookies --no-check-certificate site requires a certificated but only getting the... (0 Replies)
Discussion started by: valigula
0 Replies

8. Web Development

403 Forbidden / show directories

I have a directory that I want to just list the items when going to the URL instead of having an index.html page in the folder. I keep getting a 403 forbidden even though it is in my document root. I tried to add: Alias /keys/ "/var/www/html/keys/" <Directory "/var/www/html/keys"> ... (6 Replies)
Discussion started by: ippy98
6 Replies

9. UNIX for Dummies Questions & Answers

wget error

I'm trying to download / install mysql from the terminal. Here is what happens when I try to use wget: $ wget http://dev.mysql.com/get/Downloads/MySQL-5.1/MySQL-server-community-5.1.35-0.rhel3.i386.rpm/from/ftp://mirror.anl.gov/pub/mysql/ --13:29:16-- ... (6 Replies)
Discussion started by: wsetchell
6 Replies

10. Linux

Apache Forbidden Error

When i go to my browser and type both localhost or the ip, i get Forbidden, you do not have permission to access / on this machine Whys that ? (1 Reply)
Discussion started by: perleo
1 Replies
Login or Register to Ask a Question
SMBGET(1)																 SMBGET(1)

NAME
smbget - wget-like utility for download files over SMB SYNOPSIS
smbget [-a,--guest] [-r,--resume] [-R,--recursive] [-u,--username=STRING] [-p,--password=STRING] [-w,--workgroup=STRING] [-n,--nonprompt] [-d,--debuglevel=INT] [-D,--dots] [-P,--keep-permissions] [-o,--outputfile] [-f,--rcfile] [-q,--quiet] [-v,--verbose] [-b,--blocksize] [-?,--help] [--usage] {smb://host/share/path/to/file} [smb://url2/] [...] DESCRIPTION
This tool is part of the samba(7) suite. smbget is a simple utility with wget-like semantics, that can download files from SMB servers. You can specify the files you would like to download on the command-line. The files should be in the smb-URL standard, e.g. use smb://host/share/file for the UNC path \HOSTSHAREfile. OPTIONS
-a, --guest Work as user guest -r, --resume Automatically resume aborted files -R, --recursive Recursively download files -u, --username=STRING Username to use -p, --password=STRING Password to use -w, --workgroup=STRING Workgroup to use (optional) -n, --nonprompt Don't ask anything (non-interactive) -d, --debuglevel=INT Debuglevel to use -D, --dots Show dots as progress indication -P, --keep-permissions Set same permissions on local file as are set on remote file. -o, --outputfile Write the file that is being download to the specified file. Can not be used together with -R. -f, --rcfile Use specified rcfile. This will be loaded in the order it was specified - e.g. if you specify any options before this one, they might get overriden by the contents of the rcfile. -q, --quiet Be quiet -v, --verbose Be verbose -b, --blocksize Number of bytes to download in a block. Defaults to 64000. -?, --help Show help message --usage Display brief usage message SMB URLS
SMB URL's should be specified in the following format: smb://[[[domain;]user[:password@]]server[/share[/path[/file]]]] smb:// means all the workgroups smb://name/ means, if name is a workgroup, all the servers in this workgroup, or if name is a server, all the shares on this server. EXAMPLES
# Recursively download 'src' directory smbget -R smb://rhonwyn/jelmer/src # Download FreeBSD ISO and enable resuming smbget -r smb://rhonwyn/isos/FreeBSD5.1.iso # Recursively download all ISOs smbget -Rr smb://rhonwyn/isos # Backup my data on rhonwyn smbget -Rr smb://rhonwyn/ BUGS
Permission denied is returned in some cases where the cause of the error is unknown (such as an illegally formatted smb:// url or trying to get a directory without -R turned on). VERSION
This man page is correct for version 3.0 of the Samba suite. AUTHOR
The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. The smbget manpage was written by Jelmer Vernooij. SMBGET(1)