[android-developers] Re: ProtocolException while HTTP POST

2010-09-25 Thread Amit
HI All, Finally the problem got solved. Just needed to call an API on the HttpConnection object - setDoOutput(true). Thanks Amit On Sep 9, 11:41 am, Jason jason.poli...@gmail.com wrote: Usually this means the protocol portion of the URL is not valid. So for example in http://www.google.com;,

[android-developers] Re: ProtocolException while HTTP POST

2010-09-09 Thread Jason
Usually this means the protocol portion of the URL is not valid. So for example in http://www.google.com;, the protocol is HTTP. As Veritatis says, your URL is probably invalid. If it's indeed an HTTP url, make your you prefix it the http:// or https:// as it may barf if you try just

[android-developers] Re: ProtocolException while HTTP POST

2010-09-08 Thread Indicator Veritatis
Well, the obvious reason is that the URL you gave it has something wrong in it. But you didn't tell us the URL, so we can only guess. On Sep 8, 5:15 am, Amit amitmishr...@gmail.com wrote: Hi All, I am trying to do HTTP Post through HttpURLConnection. But in the line OutputStream output =