[GH-ISSUE #112] Parent/Upstream HTTP Proxy with Authentication #58

Closed
opened 2026-02-27 23:15:15 +03:00 by kerem · 1 comment
Owner

Originally created by @elog08 on GitHub (Jul 15, 2018).
Original GitHub issue: https://github.com/snail007/goproxy/issues/112

I would like to use goproxy as a tunnel to an authenticated HTTP proxy.

goproxy:33080 -> user:pass@proxy.site:3333 -> www.example.org

I have tried the following:
proxy http --always -t tcp -p ":33080" -T tcp -P "proxy.site:3333" -u "user" -A "pass"
proxy http --always -t tcp -p ":33080" -T tcp -P "proxy.site:3333" -A "user:pass"
but I get a Proxy Authorization error

curl -x localhost:33080 httpbin.org/ip
<html><head><title>407 Proxy Authentication Required</title></head>
<body><h2>407 Proxy Authentication Required</h2><h3>Access to requested resource disallowed by administrator or you need valid username/password to use this resource</h3></body></html>

Any help appreciated,
Thanks

Originally created by @elog08 on GitHub (Jul 15, 2018). Original GitHub issue: https://github.com/snail007/goproxy/issues/112 I would like to use goproxy as a tunnel to an authenticated HTTP proxy. goproxy:33080 -> user:pass@proxy.site:3333 -> www.example.org I have tried the following: `proxy http --always -t tcp -p ":33080" -T tcp -P "proxy.site:3333" -u "user" -A "pass" ` `proxy http --always -t tcp -p ":33080" -T tcp -P "proxy.site:3333" -A "user:pass" ` but I get a Proxy Authorization error ``` curl -x localhost:33080 httpbin.org/ip <html><head><title>407 Proxy Authentication Required</title></head> <body><h2>407 Proxy Authentication Required</h2><h3>Access to requested resource disallowed by administrator or you need valid username/password to use this resource</h3></body></html> ``` Any help appreciated, Thanks
kerem 2026-02-27 23:15:15 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@snail007 commented on GitHub (Jul 15, 2018):

-A not supported by http(s) proxy , you can use sps model to do that, sps : https://github.com/snail007/goproxy#6proxy-protocol-conversion

<!-- gh-comment-id:405087887 --> @snail007 commented on GitHub (Jul 15, 2018): -A not supported by http(s) proxy , you can use sps model to do that, sps : https://github.com/snail007/goproxy#6proxy-protocol-conversion
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#58
No description provided.