aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Retrieving a file on a website, through a proxy, over the https protocol Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Retrieving a file on a website, through a proxy, over the https protocol" Watch "Retrieving a file on a website, through a proxy, over the https protocol" New topic
Author

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

Spencer Lee
Greenhorn

Joined: Jan 25, 2005
Posts: 13
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

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jan 25, 2005
Posts: 13
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retrieving a file on a website, through a proxy, over the https protocol
 
Similar Threads
regarding https
How to access protected url through an Applet in NS 4.7x?
which protocol to use
How to connect a URL to a class file
Configure Proxy in apache for JBoss