How to view/debug non-standard request headers my phone's browser is sending?
ajax, android, http-headers, webview, xmlhttprequest
Solution
Have not found a site that does what you wanted to do, but you can easily make a PHP script that does it for you:
<?php
$headers = getallheaders();
foreach ($headers as $name => $value) {
echo $name . '=' . $value . '<br/>';
}
?>
You can easily upload this in one of your PHP servers. If you do not have one, you can setup one using XAMPP
Problem
There are many websites that display and let you see standard request headers. But I could not find any website that actually displays non-standard request headers, by triggering my WebView-based Android app to send certain fields. More specifically, I am looking to see what my Android phone is sending in the `X-Requested-With` field. Note: I am not looking for a Firefox add-on, because my goal is not to see how the other side responds to a synthesized request. What am looking for is a way to know what the other side (website) is seeing from my particular Android device.