• Post Reply Bookmark Topic Watch Topic
  • New Topic

Retrieving a file on a website, through a proxy, over the https protocol  RSS feed

 
Spencer Lee
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

Just trying to find a nice how-to, trail, readme, tutorial, etc that might explaing a thing or two about how I can implement a small app that will

* browse to a secure (https) website
* login with a username and password
* retrieve and save the destination file locally
* all through a proxy server

Eg.

I want to save https://myserver/mypath/myfile.zip to a local directory.

Unfortunately, I've havent had much luck translating what I've read about sockets, URL objects, etc to the "https" protocol and through a proxy.

If you can recommend a nice reference (it can be a book too since I subscribe to safari.oreilly.com), I'd greatly appreciate it.

Thanks!

Spencer
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you try HttpClient ?

http://jakarta.apache.org/commons/httpclient

You can use HttpClient class to connect https, with a proxy and so on...
 
Spencer Lee
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the tip. I checked it out and it looks like it could be very useful.

Also, for others who are having trouble reading files over https through a proxy.

I finally found the cause to be incorrectly set system properties.

Instead of:


It should be...



-Spencer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!