OpenFile from webserver

sergeysagan

Member
Joined
Sep 10, 2003
Messages
7
How do I open a file for output(since I need to put in a password and username) from a webserver.

For a local file I use:

Code:
 Open our link page and and add the link information
FileOpen(1, LinkFileDir + LinkFileName, OpenMode.Output)
Print(1, LinkFileValue)
 Close File
FileClose(1)

How would I do that for my webserver:
my URL is:
http://www.enhancementresearch.com
I assume I would need to go through the FTP.

Serj
 
Does no one know how to do the above? Maybe someone knows a website with a tutorial for this? Any hints on this will be appreciated.
 
Use the WebClient and its DownloadData method to download the text from a URL. For more information, look in the MSDN. To write to it, youll need to use Sockets, and learn the FTP protocol. It will involve logging into the sites FTP server and uploading a file to the server.
 
Okay so the WebClient.DownloadFile was so simple, thanks for the tip on that. Okay so I downloaded the file edited it, now I need to upload it(it needs user/pass verification), can you point me to a good tutorial on the subject, all I ever seem to find when searching for tutorial on the subject is ASP.NET, is this what I need to be looking at or it it something else. To describe the program:

It is a html editor(for LinkExchange) it downloads the file updates it and then needs to upload it... seems pretty simple but the uploading has me confused, the WebClient upload seems like it is only for Annonymous. Anyways anyone who can guide me in the right direction for a tutorial or just shows me in this thread, your help is definately appreciated.

Thanks again.
 

Similar threads

Back
Top