6

I am running some tests to understand subtle nuances between various browsers / OSs and how they send data via different methods, ajax, stand posts & get, jQuery, etc. so I need to capture data as it comes through to the server, unaltered.

I have a PHP script that is capturing RAW POST data using php://input, but I'm unclear on how to achieve a similar stream for data sent via GET. The $_GET array url decodes my data, which for this sets of tests I do not want. I want the RAW URL encoded data as sent to in the GET request.

Is there a quick way to do this in PHP?

Thanks!

1 Answer 1

12

You could use the $_SERVER['QUERY_STRING'] value and parse that.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.