LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-11-2016, 08:56 PM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
Why curl: (56) Recv failure: Connection reset by peer?


I have build forword proxy on my vps.
Code:
    curl -x "vps_ip:80"  https://www.yahoo.com
It get normal output on my terminal.
Code:
    curl -x "vps_ip:80" https://dl-ssl.google.com/linux/linux_signing_key.pub
An error info occur.

curl: (56) Recv failure: Connection reset by peer

Why https://www.yahoo.com can get by curl with forword proxy,https://dl-ssl.google.com/linux/linux_signing_key.pub can't get by the same forword proxy on the same machine?
 
Old 09-13-2016, 07:47 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe use ' -v ' curl option to add operation details

edit, also https usually use TCP port 443, not 80

Last edited by keefaz; 09-13-2016 at 07:48 AM.
 
1 members found this post helpful.
Old 09-17-2016, 08:41 PM   #3
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Original Poster
Rep: Reputation: Disabled
curl -x "vps_ip:80" -v https://dl-ssl.google.com/linux/linux_signing_key.pub -o /tmp/key.pub
* Hostname was NOT found in DNS cache
* Trying vps_ip...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to vps_ip (vps_ip) port 80 (#0)
* Establish HTTP proxy tunnel to dl-ssl.google.com:443
> CONNECT dl-ssl.google.com:443 HTTP/1.1
> Host: dl-ssl.google.com:443
> User-Agent: curl/7.38.0
> Proxy-Connection: Keep-Alive
>
* Recv failure: Connection reset by peer
* Received HTTP code 0 from proxy after CONNECT
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
 
  


Reply



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
Server gets "Connection Reset By Peer" on a read/recv bill_nimmo Programming 0 12-11-2014 04:44 PM
amanda-server, selfcheck request failed: recv error: Connection reset by peer malayo Linux - Server 3 02-25-2011 05:30 AM
AMANDA backup - recv error: Connection reset by peer koopa13 Linux - Newbie 1 06-27-2010 06:12 PM
Urgent---TSclient Problem -Error: recv:Connection Reset by Peer? teluguswan Linux - Networking 5 10-12-2007 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:42 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