Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to download files using Integrated Windows Authentication (IWA)?  RSS feed

 
Emanuele Blanco
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to make a class that allows me to download files that can be accessed via Integrated Windows Authentication. If i login on the domain, I can access those files via Internet Explorer without setting any credential.

URLs are redirected: I can access to a document via a http://mydomain.local/download.aspx?DocNumber=xxx, where xxx is the identifier for the document. I'm using JDK 5. My goal is to ask the server for the filename then write a file with that name (and of course the content :-))

I read some instructions here - http://java.sun.com/javase/6/docs/technotes/guides/net/http-auth.html - but it doesn't work. It hangs when it tries to read the line from the InputBuffer.

Any suggestions - tricks - links to read are welcome, I'm really newbie into Java networking programming using authentication, and even with that Microsoft IWA stuff

Thank you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!