• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic