Proxyman
Proxyman copied to clipboard
Request to localhost gets full URL as a path in HTTP request
Description
Sending a request to localhost makes a HTTP request that includes full URL in path instead, which compeltely breaks a behavior of Proxyman as a HTTP proxy.
The behavior is introduced in 5.20.0 (52000).
Steps to Reproduce
- Run
nc -l 3000and keep it running. - Run Proxyman 5.20.0 and enable HTTP proxy.
- Run
curl -v --proxy http://localhost:9090 http://localhost:3000.
Current Behavior
nc -l 3000 echos following request
$ nc -l 3000
GET http://localhost:3000/ HTTP/1.1
Host: localhost:3000
User-Agent: curl/8.7.1
Accept: */*
Connection: Keep-Alive
Expected Behavior
HTTP request shouldn't include full URL such as a procotol, hostname etc, but only path.
$ nc -l 3000
GET / HTTP/1.1
Host: localhost:3000
User-Agent: curl/8.7.1
Accept: */*
Connection: Keep-Alive
[!NOTE] This is the output with Proxyman 5.19.0.
Environment
- App version: Proxyman 5.20.0
- macOS version: macOS 15.5