• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

post an xml document to a https:// address

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.
We can walk to school together. And we can both read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic