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", 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 justwww.google.com(dunno about this.. may > still work and just assume http), or if you try a non HTTP url using > an HTTPConnection. > > On Sep 9, 4:13 am, Indicator Veritatis <mej1...@yahoo.com> wrote: > > > 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 = httpCon.getOutputStream(); > > > > I am getting exception- > > > > problem in connection - java.net.ProtocolException: Does not support > > > output URL - my url > > > > What may be the reason? Kindly help. > > > > Best Regards > > > Amit -- 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