Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Upload and Download file to https

 
vicky pribadhy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

would you please explain to me how to download and upload file(s) to https server. I have a https server that provide a directory that contains files i should download all of them but i don't know the file's name, and then i must upload a file to that directory too. Could you send me sample code please?
Thanks in advance.



regards,


Vicky Pribadhy
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

You can't download a file if you don't know its name. Is there maybe a page that lists all the files contained in that directory?

For uploading you need a client-side component (e.g., Jakarta HttpClient) and a server-side component (e.g., Jakarta FileUpload). Is the server equipped to receive file uploads?

More information and links about uploading files can be found on this FAQ page.
 
vicky pribadhy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks for your explanation,
to download , i access a url that produce html that list all files in it(directory listing). and then i parse the stream and i get those file name.

but to upload, i don't know how.

thanks
 
vicky pribadhy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok thanks for your explanation,
to download , i access a url that produce html that list all files in it(directory listing). and then i parse the stream and i get those file name.

but to upload, i don't know how.

thanks
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!