1

For setting Headers

public void loadUrl (String url, Map<String, String> additionalHttpHeaders)  get request

For setting Post Data

public void postUrl (String url, byte[] postData)

don't add header

But what I really required is to post the data with headers.

Can somebody please help me out with that.

zisoft
  • 22,770
  • 10
  • 62
  • 73
ht Zheng
  • 11
  • 2
  • see this http://developer.android.com/reference/org/apache/http/message/AbstractHttpMessage.html#addHeader%28java.lang.String,%20java.lang.String%29 – duggu Dec 30 '14 at 07:45
  • The easiest solution would be to make this request from inside of the WebView, using JavaScript. – atok Dec 30 '14 at 07:46

0 Answers0