I have a mobile website and an Android mobile app that can download this website in a web view. I would like to set the HTTP “referer” request header from an Android application to keep track of what Android application users are doing.
Is there a way to set HTTP request headers before calling loadURL () in a WebView?
EDIT:
It turns out that in Froyo (2.2) there is a way to do this, since the loadUrl () command has a new parameter to specify additional WebView / loadUrl headers . The comments say that you cannot override common headers, but I tested the "referer" and it works great.
So, still need a pre Froyo solution - any ideas?
Kevin source
share