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.
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Hongyi Zhao via curl-users <curl-users_at_cool.haxx.se>
Date: Thu, 18 Mar 2021 22:05:30 +0800
On Thu, Mar 18, 2021 at 9:37 PM Hongyi Zhao <hongyi.zhao_at_gmail.com> wrote:
>
> On Thu, Mar 18, 2021 at 7:13 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
> >
> > On Thu, 18 Mar 2021, Hongyi Zhao wrote:
> >
> > > Why did the test based on the SOCKS5 proxy succeed?:
> >
> > Because that's a different proxy with different rules setup?
>
> In fact, the HTTP proxy used here is converted from this socks5 proxy
> by delegate, <http://www.delegate.org/delegate/>, with the following
> command:
>
> $ dg.exe -P8080 SERVER=http -v ADMIN=hongyi.zhao_at_gmai.com SOCKS=127.0.0.1:18888
Got it. It's due to the delegate, <http://www.delegate.org/delegate/>,
which exposes me a bogus converted HTTP server. The similar test using
python-proxy, <https://github.com/qwj/python-proxy>, will succeed with
the same upstream socks5 proxy. See
<https://github.com/rofl0r/proxychains-ng/issues/374#issuecomment-801949223>
for the detailed testing.
Regards
Date: Thu, 18 Mar 2021 22:05:30 +0800
On Thu, Mar 18, 2021 at 9:37 PM Hongyi Zhao <hongyi.zhao_at_gmail.com> wrote:
>
> On Thu, Mar 18, 2021 at 7:13 PM Daniel Stenberg <daniel_at_haxx.se> wrote:
> >
> > On Thu, 18 Mar 2021, Hongyi Zhao wrote:
> >
> > > Why did the test based on the SOCKS5 proxy succeed?:
> >
> > Because that's a different proxy with different rules setup?
>
> In fact, the HTTP proxy used here is converted from this socks5 proxy
> by delegate, <http://www.delegate.org/delegate/>, with the following
> command:
>
> $ dg.exe -P8080 SERVER=http -v ADMIN=hongyi.zhao_at_gmai.com SOCKS=127.0.0.1:18888
Got it. It's due to the delegate, <http://www.delegate.org/delegate/>,
which exposes me a bogus converted HTTP server. The similar test using
python-proxy, <https://github.com/qwj/python-proxy>, will succeed with
the same upstream socks5 proxy. See
<https://github.com/rofl0r/proxychains-ng/issues/374#issuecomment-801949223>
for the detailed testing.
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.htmlReceived on 2021-03-18