Hi,
I have an application that can callup any URL, including of course PHP, but only using the GET method. It's a bit unfortunate, since the users can see all the arguments passed to the script and could eventually attempt to hack it.
My idee would be to have the php script check is the passed arguments are GET: if so convert to POST and recall itself.
If I'm not mistaken, the arguments should only be visible for a split second, with is fine to me.
Checking if variables have been sent with GET shouldn't be that difficult, but I do not know if a php can call another php (in this case itself) by passing POST arguments.
Any suggestions?
Thanks,
AD AUGUSTA PER ANGUSTA
Thierry
I have an application that can callup any URL, including of course PHP, but only using the GET method. It's a bit unfortunate, since the users can see all the arguments passed to the script and could eventually attempt to hack it.
My idee would be to have the php script check is the passed arguments are GET: if so convert to POST and recall itself.
If I'm not mistaken, the arguments should only be visible for a split second, with is fine to me.
Checking if variables have been sent with GET shouldn't be that difficult, but I do not know if a php can call another php (in this case itself) by passing POST arguments.
Any suggestions?
Thanks,
AD AUGUSTA PER ANGUSTA
Thierry