thanks for the reply Mark!

i tried httpget also but same 500 error.

is there any sniffing tool i can configure with emulator to check the
exact http trafic format?



On Mar 25, 1:25 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> zeeshan wrote:
> > well, thanks
>
> > i added these headers
>
> >  conn.setRequestProperty("hdr-1",this.hdr1);
> >           conn.setRequestProperty("hdr-2",this.hdr2);
> >           conn.setRequestProperty("hdr-3",this.hdr3);
>
> > but now i am getting 500 error response
>
> > i need to use a get method forhttp://www.x.com/server.xmlwith the
> > mandatory headers i just added
>
> > just wondering if something wrong in my code or in server itself.
>
> > shall i use httpget method?
>
> You can try that. If the server in question offers any examples of
> accessing its content programmatically (e.g., example curl or wget
> commands), review those and see if there is anything obvious you are
> missing. Of course, the best solution is if somebody offered a Java API
> for accessing this Web service (e.g., JTwitter for Twitter).
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Training:http://commonsware.com/training.html
--~--~---------~--~----~------------~-------~--~----~
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