1

How to send a referer in a url for a webView? There exists an method loadUrl (String url, Map additionalHttpHeaders), but i have a 7 Api.

That's how I was trying

 mWebView.getSettings().setJavaScriptEnabled(true); 
 mWebView.getSettings().setUserAgentString("");
 mWebView.setWebViewClient(new HelloWebViewClient());
 String query = "referer=http://donmob.com/";
 mWebView.postUrl("http://donmob.com/",EncodingUtils.getBytes(query, "BASE64"));
AndroidNub
  • 73
  • 2
  • 9

1 Answers1

-1

i think the below posts have your answer

How to send a URL request as 'Referer'

How to send a referer request in a url for a webView

Here they uses loadUrl() with additionalHttpHeaders parameter and this feature is available from Android 2.2 onwards.

Community
  • 1
  • 1
sunil
  • 6,444
  • 1
  • 32
  • 44
  • then please explain your problem in more detail with code samples that you have tried. i hope, this will help you to get more specific answers – sunil Jul 03 '12 at 07:18