[BUG] Hugely inefficient FTP code: coding opportunity
Hannes Hirzel
hirzel at spw.unizh.ch
Wed Feb 13 00:14:22 UTC 2002
On Tue, 12 Feb 2002, Michael Rueger wrote:
>
>
> Cees de Groot wrote:
>
> > OTOH, HTTP PUT in this context would be using it for precisely the
> > thing it was designed for: publishing stuff to web servers. The format
> > is extremely simple (PUT <pathname> HTTP/1.0, CRLF, Content-type:
>
> There is already a HTTP put:
>
> HTTPSocket>>httpPut: contents to: url user: user passwd: passwd
>
It does not work for me. I do an inspect on
HTTPSocket httpPut: '<html><h1>hello world</h1></html>' to:
'http://myDomain/myDirectory/testh.html' user: 'myUserName'
passwd: 'myPassWord'
and get back the string
HTTP/1.0 301 Moved Permanently
Connection: close
Date: Wed, 13 Feb 2002 00:03:59 GMT
Server: Apache/1.3.22 (Unix) PHP/4.1.1 mod_ssl/2.8.5 OpenSSL/0.9.6b
Location: http://myDomain/myDirectory/testh.html
Content-Type: text/html; charset=iso-8859-1<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML 2.0//EN"><HTML><HEAD><TITLE>301 Moved
Permanently</TITLE></HEAD><BODY><H1>Moved Permanently</H1>The document has
moved <A
HREF="http://myDomain/myDirectory/testh.html">here</A>.<P></BODY></HTML>
No file has been uploaded!
If it exists before or not doesn't matter.
Does this work with other servers?
What am I missing?
Regards
Hannes Hirzel
More information about the Squeak-dev
mailing list
|