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 for http://www.x.com/server.xml with the
mandatory headers i just added

just wondering if something wrong in my code or in server itself.

shall i use httpget method?

On Mar 25, 12:27 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> zeeshan wrote:
> > Hi Android Experts,
>
> > i need to make a GET request to thehttp://www.x.com/server.xmlwhich
> > takes 3 mandatory headers
>
> > hdr1,hdr2,hdr3
>
> > i am trying this code
>
> Your code appears to be setting form variables, which are not HTTP
> headers. Headers are set via setRequestProperty() with URLConnection,
> just as you are using it for Connection and Content-Type.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Warescription: Three Android Books, Plus Updates, $35/Year
--~--~---------~--~----~------------~-------~--~----~
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