Issues with wget


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Issues with wget
# 1  
Old 10-13-2011
Issues with wget

Hi Gurus,

I'm using wget cmd for the first time. I need to get the URL content in a unix file. But getting below connection error while using the command.

Code:
 
-sh-3.2$ wget https://int.net/intranet/index.htm
--04:58:15--  https://int.net/intranet/index.htm
Resolving int.net... xxx.xxx.xxx.xx
Connecting to int.net|xxx.xxx.xxx.xx|:443... failed: Connection timed out.
Retrying.
--05:01:25--  (try: 2)  https://int.net/intranet/index.htm
Connectin

I used several options... but those didn't help...
Could someone suggest me any options to avoid checking the server certificates and redirecting the URL output to a file?

Thanks in advance.

Regards,
VRN

Last edited by pludi; 10-13-2011 at 05:13 AM..
# 2  
Old 10-13-2011
The error message here doesn't have anything to do with the certificate. It tells you that the server you're talking to doesn't even serve HTTPS content, or at least not on the default port 443.
# 3  
Old 10-13-2011
URL which i used to test is correct only

could anyone let me know what is the exact reason for this error? and how to fix it pls?

Thanks

Regards,
VRN
# 4  
Old 10-13-2011
Apparently, it isn't:
Code:
Connecting to int.net|xxx.xxx.xxx.xx|:443... failed: Connection timed out.

wget only times out if the port isn't responding, at which point the certificate hasn't even been transmitted.
# 5  
Old 10-13-2011
try again

wget --no-check-certificate https://int.net/intranet/index.htm
# 6  
Old 10-13-2011
It means the website simply isn't responding. It's not a problem with protocol, certificates, or anything else. It can't talk to the site, at all, period.

Does your system need to use a proxy?
# 7  
Old 10-13-2011
when i use `wget --no-check-certificate https://int.net/intranet/index.htm `, getting below, but it's still having the same issue... as someone suggested above, it's something with port setting only. But not sure how to fix it.

Quote:
$wget --no-check-certificate http://intra.net/intranet/index.htm
--02:24:25-- http://intra.net/intranet/index.htm
Resolving intra.net... xxx.xxx.xxx.xx
Connecting to intra.net|xxx.xxx.xxx.xx|:80... connected.
HTTP request sent, awaiting response... 303 See other
Location: https://intra.net/intranet/index.htm [following]
--02:24:25-- https://intra.net/intranet/index.htm
Connecting to intra.net|xxx.xxx.xxx.xx|:443...

Could anyone let me know how to check which port is required pls?
FYI. this url is accessble through windows browser....

Regards,
VRN
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 and gz

Can wget be used to goto a site and piped into a .gz extrated command? wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37 | gunzip -d clinvar_20150603.vcf.gz (1 Reply)
Discussion started by: cmccabe
1 Replies

3. UNIX for Dummies Questions & Answers

Wget help

How can I download only *.zip and *.rar files from a website <index> who has multiple directories in root parent directory? I need wget to crawl every directory and download only zip and rar files. Is there anyway I could do it? (7 Replies)
Discussion started by: galford
7 Replies

4. Red Hat

Wget

If I run the following command wget -r --no-parent --reject "index.html*" 10.11.12.13/backups/ A local directory named 10.11.12.13/backups with the content of web site data is created. What I want to do is have the data placed in a local directory called $HOME/backups. Thanks for... (1 Reply)
Discussion started by: popeye
1 Replies

5. Shell Programming and Scripting

WGET help!

Hi Friends, I have an url like this https://www.unix.com/help/ In this help directory, I have more than 300 directories which contains file or files. So, the 300 directories are like this http://unix.com/help/ dir1 file1 dir2 file2 dir3 file3_1 file3_2... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

6. UNIX for Dummies Questions & Answers

Wget

...... (1 Reply)
Discussion started by: hoo
1 Replies

7. Shell Programming and Scripting

wget

Hi I want to download some files using wget , and want to save in a specified directory. Is there any way to save it.Please suggest me. (1 Reply)
Discussion started by: mnmonu
1 Replies

8. Shell Programming and Scripting

Help with wget

Hi, i need temperature hourly from a web page Im using wget to get the web page. I would like to save the page downloaded in a file called page. I check the file everytime i run the wget function but its not saving but instead creates a wx.php file....Each time i run it...a new wx.php file is... (2 Replies)
Discussion started by: vadharah
2 Replies

9. Shell Programming and Scripting

wget help

i am trying to ftp files/dirs with wget. i am having an issue where the path always takes me to my home dir even when i specify something else. For example: wget -m ftp://USER:PASS@IP_ADDRESS/Path/on/remote/box ...but if that path on the remote box isn't in my home dir it doesn't change to... (0 Replies)
Discussion started by: djembeplayer
0 Replies

10. Shell Programming and Scripting

wget -r

I have noticed a lot of expensive books appearing online so I have decided to copy them to CD. I was going to write a program in java to do this, but remembered that wget GNU program some of you guys were talking about. Instead of spending two hours or so writing a program to do this.... (1 Reply)
Discussion started by: photon
1 Replies
Login or Register to Ask a Question