LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2016, 02:59 AM   #1
silv3r
LQ Newbie
 
Registered: May 2015
Posts: 11

Rep: Reputation: Disabled
Unhappy unable to use wget via proxy


Hi All,

I have a problem downloading files from https from our internal network. I already export both proxy as below

[root@uk]# echo $http_proxy
http://setproxy.aaa.com/proxy.pac:8080
[root@uk]# echo $https_proxy
http://setproxy.aaa.com/proxy.pac:8080


wget are used as below

[root@uk]# wget https://www.google.com/
--2016-12-05 03:52:09-- https://www.google.com/
Resolving setproxy.aaa.com... 10.184.18.74
Connecting to setproxy.aaa.com|10.184.18.74|:80... connected.
Proxy tunneling failed: Method Not AllowedUnable to establish SSL connection.
[root@uk]#


even with username/passwd and --no-check-cert still failing

[root@uk]# wget --proxy-user aaa12345 --proxy-password 12334 https://www.google.com/
--2016-12-05 03:52:59-- https://www.google.com/
Resolving setproxy.aaa.com... 10.184.18.74
Connecting to setproxy.aaa.com|10.184.18.74|:80... connected.
Proxy tunneling failed: Method Not AllowedUnable to establish SSL connection.
[root@uk]#

[root@uk]# wget --no-check-certificate https://www.google.com/
--2016-12-05 03:58:14-- https://www.google.com/
Resolving setproxy.aaa.com... 10.184.18.74
Connecting to setproxy.aaa.com|10.184.18.74|:80... connected.
Proxy tunneling failed: Method Not AllowedUnable to establish SSL connection.
[root@uk]#


my version are
[root@uk]# wget --version
GNU Wget 1.12 built on linux-gnu.


Please help me, thank you gurus!
 
Old 12-05-2016, 05:30 AM   #2
camp0
Member
 
Registered: Dec 2016
Location: Dublin
Distribution: Fedora
Posts: 70

Rep: Reputation: 4
Hi,

From my point of view it looks that your proxy dont allow that, but im guessing.

Try to use also curl that may help.

Regards,
Luis
 
Old 12-05-2016, 01:57 PM   #3
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Can you try:
Code:
wget --method=HEAD https://www.google.com/
If it went through, HEAD is allowed but not GET method as per log output. Regardless, check your proxy server.
 
Old 12-05-2016, 02:24 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I think the target will not al;low the ssl connection. You might try --user-agent= and just leave it blank.

Last edited by AwesomeMachine; 12-05-2016 at 02:26 PM.
 
Old 12-05-2016, 06:21 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,105

Rep: Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638
https://www.cyberciti.biz/faq/wget-e...tps-web-sites/ has some ideas to try.
 
Old 12-06-2016, 12:59 AM   #6
silv3r
LQ Newbie
 
Registered: May 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
@camp0 - i tried using curl, still showing failed
[root@us /]# curl https://www.google.com/
curl: (7) Failed to connect to 2607:f8b0:400a:800::2004: Network is unreachable
[root@us]#


@c0wb0y - I do not see any --method options, different version maybe?
[root@us]# wget --method=HEAD https://www.google.com/
wget: unrecognized option '--method=HEAD'
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
[root@us]#


@AwesomeMachine - its just showing trying

[root@us]# wget --user-agent= https://www.google.com/
--2016-12-06 06:51:14-- https://www.google.com/
Resolving www.google.com (www.google.com)... 216.58.216.132, 2607:f8b0:400a:800::2004
Connecting to www.google.com (www.google.com)|216.58.216.132|:443...

@jefro - thanks for the useful site, I've bee through it before post it here

or issit possible i got the proxy server wrong?

thanks all for helping out
 
Old 12-06-2016, 01:21 AM   #7
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 361

Rep: Reputation: 61
Read the error carefully. You are using ssl. It says method not allowed.

try substituting https with http if you want to download and see if it works.


Hope this helps.
 
Old 12-06-2016, 01:27 AM   #8
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Oops, my bad. I misread the manpage.

How about this:
Code:
curl -4 https://www.google.com/
openssl s_client -connect google.com:443
We're you able to get past the proxy?

Last edited by c0wb0y; 12-06-2016 at 02:23 PM.
 
Old 12-06-2016, 01:57 AM   #9
silv3r
LQ Newbie
 
Registered: May 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
@pingu_penguin - same for even http

[root@us~]# wget http://www.google.com/
--2016-12-06 07:55:30-- http://www.google.com/
Resolving setproxy.aaa.com (setproxy.aaa.com)... 152.51.8.191
Connecting to setproxy.aaa.com (setproxy.aaa.com)|152.51.8.191|:80...


@c0wb0y - i got error as below. curl ip4 not helping either
[root@us ~]# openssl s_client -connect google.com:443
socket: Connection timed out
connect:errno=110
[root@us~]#

cheers guys
 
Old 12-06-2016, 02:16 AM   #10
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
It's time for you now to check your proxy server.
 
Old 12-06-2016, 02:23 AM   #11
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 361

Rep: Reputation: 61
I agree with c0wboy , check your proxy or use some other proxy.
 
Old 12-06-2016, 02:27 AM   #12
silv3r
LQ Newbie
 
Registered: May 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
@c0wb0y and pingu_penguin - thank you guys, let me try to check if there's any other proxy server i can use. Will let u guys know if that fix it.

thanks again
 
Old 12-06-2016, 08:16 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
try using axel to see if that will get past your proxy.

Axel behind authenticated proxy

Last edited by BW-userx; 12-06-2016 at 08:18 AM.
 
Old 12-09-2016, 01:34 AM   #14
silv3r
LQ Newbie
 
Registered: May 2015
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks everyone for your help, yeap - issues with my proxy server.. its working good after i change my proxy server and port.

thanks again, appreciate your help
 
Old 12-09-2016, 10:36 AM   #15
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by silv3r View Post
thanks everyone for your help, yeap - issues with my proxy server.. its working good after i change my proxy server and port.

thanks again, appreciate your help
Hi...

Glad you got it working. If you would, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks!

Regards...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using wget with proxy Upendra Pratap Singh Linux - Software 1 05-02-2015 02:44 AM
wget - where is it getting proxy information? gandalfrat Linux - Newbie 3 04-21-2007 11:38 PM
Unable to use wget and unable to ping machine from external source grunshaw Linux - Networking 3 10-24-2006 08:46 AM
wget through proxy TheRealDeal Linux - Networking 5 09-14-2005 06:07 AM
wget with proxy? Cornholio Linux - Software 8 01-13-2005 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration