Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: wininet: Replace existing file
| Subject: | Re: wininet: Replace existing file |
| Posted by: | "Joe H" (joedot..@att.net) |
| Date: | 5 Nov 2007 11:39:27 |
Remy Lebeau (TeamB) wrote:
> Not all servers support the PUT command for uploads.
Thanks for replying, Remy. Since I can "Put" a file the first time
successfully, the site must be supporting at least that much.
> > I tried to see if there was a way to delete the file using some
> > winInet http function but I could not see a way to do it.
>
> There is a DELETE command in the HTTP protocol. But again, it
> depends on the server's actual configuration whether it is supported
> or not. I don't know very many systems that allow HHTP-based
> deletions.
I presume that WinInet is the interface to the http protocol and the
Delphi Wininet.pas does not have an httpDelete function. Maybe the
original Widows .h file would show that there is actually one in the
dll.
> Changes are, the FTP server is really configured to access the same
> folders that your website reads from.
I'll switch to ftp if I have to, but the http uploads and downloads are
considerably faster on my dialup connection.
Of course, I'm trying to build some utilities that I can use in final
builds to update information on the web site automatically instead of
having to do it manually, i.e. download the versions file, update it,
then updload it along with the updated patch-exe file. I have another
office that will be making once daily changes to the same file and the
software for that office (which I will need to write) will need to
delete old files as new ones are added.
I think our site is running an Apache server. I know it's a unix box.
I'll check with them but I doubt the Phillipino's I'll end up talking
to will know a scrap of information about the protocol or how to do
anything like this.