That is not an option. Because also i need some more headers that are
not being added and that i can't add by hand.

Indeed once of the headers i need is added by the operator APN, and
for some reason when connecting by code it is
not being added.

Below there is more info about this:

Here are the headers i get when connecting though browser:
http://bannergame.googlecode.com/files/device_browser.png

And here the ones i get when connecting through code:
http://bannergame.googlecode.com/files/device_code.png

The header i need besides the User-Agent is the **x-up-subno*** which
is a special header that AT&T adds and identify the GSM seem card that
the device is using.


Do you know why this is not added? How can i force the connection
though the APN wap setting? Or how can i mimic Webkit connection from
code?

Thanks,

Lucas

On Sep 15, 7:37 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> rollbak wrote:
> > Does anyone know we i get different behaviors?
>
> Because WebKit does not useHttpURLConnection.
>
> > How i can i connect in the same way the browser does?
>
> Set your own User-Agent header via methods onHttpURLConnection.
>
> http://stackoverflow.com/questions/480153/how-to-modify-the-header-of...
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Beginning Android_ from Apress Now Available!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to