Thanks for the info, Mark. This exactly answers my questions. I was trying to modify the HTTP headers while using the webkit and it appears that only the User-Agent is exposed via an API while the HTTPClient setHeaders API is hidden in the webkit and not exposed via WebSettings API.
On Apr 21, 3:03 pm, Mark Murphy <[email protected]> wrote: > myandroid wrote: > > Is there a standard way in Android to add custom HTTP headers to HTTP > > requests originating from an application. > > If you are using HttpClient, yes. > > If you are using URLConnection, I think so. > > If you are using anything else (raw sockets, WebView, etc.), no. > > And all of those assume we are talking about *your* application. There > is no means outside the firmware to modify the behavior of *other* > applications' HTTP requests. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, $35/Year --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

