curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Test the news server connectivity over http proxy with curl.

From: Hongyi Zhao via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 18 Mar 2021 17:41:22 +0800

On Thu, Mar 18, 2021 at 5:03 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Thu, 18 Mar 2021, Hongyi Zhao via curl-users wrote:
>
> > On Ubuntu 20.04, I have a local HTTP proxy listening on port 8080
>
> ...
>
> > werner_at_X10DAi:~$ curl -vIx http://127.0.0.1:8080 telnet://news.rusnet.ru:119
>
> > < HTTP/1.1 403 Forbidden
>
> See, the proxy says it is forbidden. Proxies typically allow-lists what
> specific port numbers clients are allowed to CONNECT through to.

Why did the test based on the SOCKS5 proxy succeed?:

$ curl -vIx socks5://127.0.0.1:18888 telnet://news.rusnet.ru:119
* Trying 127.0.0.1:18888...
* TCP_NODELAY set
* SOCKS5 communication to news.rusnet.ru:119
* SOCKS5 connect to IPv4 195.208.113.96:119 (locally resolved)
* SOCKS5 request granted.
* Connected to 127.0.0.1 (127.0.0.1) port 18888 (#0)
^C

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao_at_gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2021-03-18