Hi everyone,

I have a rather confusing question but please bear with me for a while.

You see i am trying to upload a file to a certain website called http://www.doubleZ.com.

I am using java's HttpUrlConnection class. Connecting to the website is okay and i am also getting its outputstream so i can upload the html page to the above site.

The thing is that the html page that i want to upload must be placed at this address http://www.doubleZ.com/roll/wt.html

Now my question is how to i create the folders to upload the html file to the address http://www.doubleZ.com/roll/wt.html
when the space that i have is just assigned with this address
http://www.doubleZ.com, so basically what i need is a way to create the folder named roll by using Java from the client side before i can upload the html file.

I hope i have not confused anyone

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West

Recommended Answers

All 3 Replies

Sounds like you should be using FTP instead of HTTP.

Hi everyone,

Sounds like you should be using FTP instead of HTTP.

True but currently the support for FTP on java is not really all sound, but can i create the directory and file on the server i am connected to.

Is this possible at all

Yours Sincerely

Richard West

Java can support any protocol, there's just no ready made handlers for all of them in the core libraries.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.