proxyman-windows-linux icon indicating copy to clipboard operation
proxyman-windows-linux copied to clipboard

SSL Proxying not working correctly with 302 Moved Temporarily

Open mpcaddy opened this issue 1 year ago • 8 comments

Description

When SSL Proxying is enabled and the site which has a 302 status that returns a url with a different host the host portion is removed leaving just the path. It looks like it also removes the query as well.

Steps to Reproduce

  1. Visit an SSL site that returns a 302 Moved Temporarily to a different url

  2. See the response is incorrect

Current Behavior

The headers are incorrect. Location has stripped the query and the host portion. Also 302 Moved Temporarily gets changed to 302 Found, which is not the correct

Expected Behavior

For the same response to be returned regardless of SSL Proxying being enabled

Environment

  • App version: 2.5.0
  • Windows/Linux version: Windows

mpcaddy avatar Oct 11 '23 18:10 mpcaddy

With SSL Proxying enabled: IncorrectResponse With SSL Proxying disabled: CorrectResponse

mpcaddy avatar Oct 11 '23 18:10 mpcaddy

Actually after a little more testing this may be because both domains are set to ssl proxy, if I disable it for the one returned in the response then it does redirect correctly

mpcaddy avatar Oct 11 '23 19:10 mpcaddy

Thanks. It looks like it's a bug in how Proxyman handles the Location header. Let us investigate it @kics223w1

  • 302 status code means 302 Found
  • Only 301 moved permanently

NghiaTranUIT avatar Oct 12 '23 01:10 NghiaTranUIT

I'll fix this.

kics223w1 avatar Oct 12 '23 02:10 kics223w1

your app is great but sorry i have same problem when i login to site after login he should redirect me with jwt token but its only redirect back to original page without success login when i stop ssl for subdomain he redirect me to make success login its work with now problem i did tray burbsuit there was no problem so i think it was only on proxyman if hope if you can help in that soon i wait for your fix to keeb working
thank you for your really hard work

unknowen700 avatar Oct 24 '23 00:10 unknowen700

Hi @unknowen700, the bug has been fixed.

kics223w1 avatar Oct 24 '23 12:10 kics223w1

@unknowen700 can you try this beta build to verify if it fixes for you 🤔

  • Beta: https://proxyman.s3.us-east-2.amazonaws.com/windows/beta/Proxyman+Setup+2.6.0_Fix_Redirect_Issue.exe

NghiaTranUIT avatar Oct 24 '23 13:10 NghiaTranUIT

really thank you for fast reply i will test the beta now and let you the result.

your so great my friend the problem has been fixed i did test on 2 website i did have the problem before and its working now without any problem. thank you for this great project

unknowen700 avatar Oct 24 '23 21:10 unknowen700