Http

Hi everyone,

I am currently trying to do an application that does the upload as well the download of files from a http server that needs authentication.
The thing is i am not very sure where to begin and i am open to any suggestions.

Basically what i am trying to upload is a html file onto the http server and also have the capability to download back that file back to my computer if i need it. The server i am using does not support ftp so using the sun's ftp classes are out but i am not sure if there are classes that exist for the uploading and downloading of files from a http server.

I am not using servlets but trying to upload or download a simple html file to http server from a java application

Sample codings as well as informative links would be helpfull

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West
[996 byte] By [freesoft_2000] at [2007-11-19 11:05:16]
# 1 Re: Http
You aren't using servlet because you are using a java application to upload or download. Did I understand you rightly ?

If I understood you, what problems do you have with servlet or java application ?

I want to help you sincerely :)
maximb at 2007-11-10 2:23:06 >
# 2 Re: Http
Hi everyone,

You aren't using servlet because you are using a java application to upload or download. Did I understand you rightly?

You are 100% correct. That is exactly what i am doing. The thing is i know i can connect to a http using the URL class but the thing is how do i authenticate(a username and password) to connect to that particular URL??

Any help is greatly aprreciated

Thank You

Yours Sincerely

Richard West
freesoft_2000 at 2007-11-10 2:24:05 >
# 3 Re: Http
I have asked my colleagues about your question but nobody know it.

I think you need to implement authentication yourself.
You can transfer authentication data through SSL.

I have found 'Using SSL Authentication in Java Clients' article.
The article contain enough information and source code for it.

http://e-docs.bea.com/wls/docs81/security/SSL_client.html
maximb at 2007-11-10 2:25:03 >