[GH-ISSUE #1633] Copy HTTPie output contains proxy twice #1627

Open
opened 2026-03-03 19:53:00 +03:00 by kerem · 3 comments
Owner

Originally created by @pro-sumer on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1633

Originally assigned to: @NghiaTranUIT on GitHub.

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

  • App version: Proxyman 4.7.1 (47010)
  • macOS version: macOS Ventura
Originally created by @pro-sumer on GitHub (May 11, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1633 Originally assigned to: @NghiaTranUIT on GitHub. ## 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 - App version: Proxyman 4.7.1 (47010) - macOS version: macOS Ventura
Author
Owner

@NghiaTranUIT commented on GitHub (May 11, 2023):

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

<!-- gh-comment-id:1543948727 --> @NghiaTranUIT commented on GitHub (May 11, 2023): it's a huge bug. Fixing it now and send you a Beta 👍
Author
Owner

@NghiaTranUIT commented on GitHub (May 11, 2023):

@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.

<!-- gh-comment-id:1543955418 --> @NghiaTranUIT commented on GitHub (May 11, 2023): @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.
Author
Owner

@pro-sumer commented on GitHub (May 11, 2023):

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

<!-- gh-comment-id:1543982344 --> @pro-sumer commented on GitHub (May 11, 2023): Oops. I did not see that one was `http` and the other `https`... Sorry!
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/Proxyman#1627
No description provided.