Noooste / azuretls-client

An easy-to-use HTTP client 100% in Go to spoof TLS/JA3 and HTTP2 fingerprint
MIT License
172 stars 25 forks source link

unexpected EOF #74

Closed byMonaco closed 7 months ago

byMonaco commented 7 months ago

if response redirect location is not http url => error unexpected EOF

from example: Location header from server is http://127.0.0.1:80/login => OK Location header from server is ms-xal-000000004c12ae6f://auth/?code=M.C504_BL2.2.U.33333333-4444-2222-4444-123123123&state=r8z8%2bUc8/tOLmhO9agsdt43gawwfLONoY%2bRUXPpjQzdirT6XK32gadfhahUJTvbe79OOeZckPdtrQGdvLuJ4ppPIHagasdfasdfadfAc%3d => unexpected EOF

if i set "session.MaxRedirects = 0" => unexpected EOF

P.S. Works good if use session.Do with DisableRedirects: true param.

Noooste commented 7 months ago

Hello, yes you have to use DisableRedirects for this