• Post Reply Bookmark Topic Watch Topic
  • New Topic

post an xml document to a https:// address  RSS feed

Nikhil Kumar
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to "post an xml document to a https://... address". What do I do?
I tried opening a URLConnection and doing a getOutputStream(), and then writing the xml document into this OutputStream. Is this the correct approach?
If not, how do I need to proceed?
If the approach is correct, my getOutputStream() is failing with a "HTTP Response Code 407 Proxy Authorization Required". I have already set the https.proxyHost and https.proxyPort properties correctly and did a setDoOutput(true) on the URLConnection before doing the getOutputStream(). My Java Plug-in also points to get the proxy details from Browser Settings. What else do I need to do to make it work?
Please help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!