ProxymanApp / Proxyman

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

Proxyman truncates URLs that contain a # symbol #1929

Open adamprice opened 4 months ago

adamprice commented 4 months ago

Description

Proxyman truncates URLs that contain a # symbol in the path when displaying them in the UI

Steps to Reproduce

  1. Navigate to any URL that contains a # symbol in the path

Current Behavior

Any part of the URL after the # symbol doesn't display in the Proxyman UI

Expected Behavior

The full URL should be displayed in the UI

Environment

NghiaTranUIT commented 4 months ago

Thanks, it's a critical bug, I'm not sure why the fragment of the URL is ignored. Gonna fix it now and send you a Beta build 👍

NghiaTranUIT commented 4 months ago

@adamprice turns out the fragment from the URL is never sent in the HTTP Request Message. Thus, Proxyman can't capture it.

You can verify it by Google Chrome Dev Tool.

CleanShot 2024-02-09 at 12 00 51@2x

This blog also confirmed this behavior: https://blog.httpwatch.com/2011/03/01/6-things-you-should-know-about-fragment-urls/

adamprice commented 4 months ago

TIL!

Thanks for looking into it so quickly 👍🏻