ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.56k stars 185 forks source link

Copy HTTPie output contains proxy twice #1633

Open pro-sumer opened 1 year ago

pro-sumer commented 1 year ago

Description

Copy HTTPie output contains proxy twice

Steps to Reproduce

Export request as HTTPie

Current Behavior

https GET https://swapi.dev/api/people/1 \
'Host:swapi.dev' \
'Accept-Encoding:gzip, deflate' \
'Accept:*/*' \
'Connection:keep-alive' \
'User-Agent:HTTPie/3.2.1' \
--verify=no --proxy=http:http://localhost:9191 --proxy=https:http://localhost:9191

Expected Behavior

https GET https://swapi.dev/api/people/1 \
'Host:swapi.dev' \
'Accept-Encoding:gzip, deflate' \
'Accept:*/*' \
'Connection:keep-alive' \
'User-Agent:HTTPie/3.2.1' \
--verify=no --proxy=http:http://localhost:9191

Environment

NghiaTranUIT commented 1 year ago

it's a huge bug. Fixing it now and send you a Beta 👍

NghiaTranUIT commented 1 year ago

@pro-sumer turns out it's not a bug: https://httpie.io/docs/cli/proxies

It's how httpie designs:

http --proxy=http:http://10.10.1.10:3128 --proxy=https:https://10.10.1.10:1080 example.org

Note: --proxy=http: and --proxy=https: are different.

pro-sumer commented 1 year ago

Oops. I did not see that one was http and the other https... Sorry!