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: | 7 Nov 2007 06:05:12 |
Remy Lebeau (TeamB) wrote:
>
> "Joe H" <joedotah@att.net> wrote in message
> news:472f716f$1@newsgroups.borland.com...
>
> > I presume that WinInet is the interface to the http protocol
> > and the Delphi Wininet.pas does not have an httpDelete function.
>
> That is not what I was referring to. In your call to
> httpOpenRequest(), simply change 'PUT' to 'DELETE', and then don't
> send any data after calling httpSendRequest/Ex().
>
>
> Gambit
Sometimes clear thought on an issue is elusive. Sorry for wasting both
of our time on this. In checking into this http access to my web site,
I discovered after calling my web host, that there is no http username
or password for the web site. The password and username I used were for
my web site control panel. Some web hosts must provide such or I
presume Microsoft would not have made the functions, but mine doesn't
so I must use fpt to do it. I can read fine using http (like a web
browser) but can't write that way. Apparently I forgot that I must have
initially used wsftppro to upload my initial file when writing this
program the first time.
The biggest surprise is that I did not get a single error message when
trying to write to the web site. I put in exceptions at every step and
none triggered and based on the time it took, the files themselves were
definitely transmitted to the site--again with no errors along the way.
They were apparently just discarded by the site. That's a bit
discouraging. I would have thought an error on the InternetConnect with
invalid username and password would merit at least an error code return
and would have hopefully led me to this understanding much more quickly.
To be clear on the ftp issue there is a special Ftp address, account
name and password that enables full access to the entire site and the
standard ftp://ftp.MyWebSiteName.com that allows access only to the pub
folder of the web site. I presume this is the standard way web hosts
work. I was confusing these as well.
Anyway, thanks for your attempting to help.
none