So I have this curl script for remote login. It works fine for some pages but pages are not required.
For a page that is not accessible through the script, the remote server requires a URL:
https://sub.example.com/a /b/thisPage.aspx?aVar=%2Fa%2Fb%2Fc%2Fd%2FFile+Name.nev
It seems that the curl or just php automatically spans the last part
... thisPage.aspx? AVar = / a / b / c / d / file + name.nev
I have passed the curl before phoning the url variable again. And the last part is:
... thisPage.aspx? AVar =% 2Fa% 2Fb% 2Fc% 2Fd% 2FFile + Name.nev
But this is an error message that shows "bad request" and browser url:
< Code> ... this page Aspx? AVAR = / a / b / c / d / file + name.nev
When I enter enter manually ... thisPage.aspx? AVar =% 2Fa% 2Fb% 2Fc% 2Fd% 2FFile + Name.nev pulls this page properly in my browser.
Double encodings are encoded in such a way that they are encoded to % 25 .
Comments
Post a Comment