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 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?

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 [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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to