rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: 3304xfq on April 15, 2009, 09:07:26 AM

Title: not support PUT COMMAND
Post by: 3304xfq on April 15, 2009, 09:07:26 AM
1.not support PUT COMMAND
2.not support WEBDAV  ("Get":Down File,"Put" UP File,Edit File....)
Title: Re: not support PUT COMMAND
Post by: rejetto on April 15, 2009, 09:59:58 AM
webdav is in the to-do list.
you can read the list on the hfs website.
i guess your need of put is for webdav, so it's actually the same request.
Title: Re: not support PUT COMMAND
Post by: 3304xfq on April 15, 2009, 02:20:07 PM
var
  F:THttpFileStream;    //TFileStream+IDHttp
  a:string;
begin
F:=TFileStream.Create('http://abc.com/1000GB.Data',Mode);
   Mode:
          fmOpenReadWrite       Edit File
          fmCreate                  Upload New File
   
           
setlength(s,100);
F.Postion:=100000;
F.read(s[1],1000);   //http Get...RANGE Byte 100000-100000+10000   //OK!!!!

F.Write(s[1],1000);    //Not Support . :'( :'( :'( :'(

f.free;
end;


HttpFileServer,Only Support Read,   :'( :'( :'( :'( :'(



I do not speak English, can only use Pascal Code that I mean, sorry
Title: Re: not support PUT COMMAND
Post by: rejetto on April 15, 2009, 02:40:46 PM
i understand the code :)
can you post the HTTP request header related to F.Write(s[1],1000)  ?
Title: Re: not support PUT COMMAND
Post by: 3304xfq on April 15, 2009, 05:08:59 PM
IIS,support HTTP File Read and Write


PUT /xxx HTTP/1.1
Host: localhost
Content-Length: 11
Content-Range: 123-133/*

abcdeabcdea


HTTP PUT :
http://chaoslawful.javaeye.com/blog/310327    (chinese)
Title: Re: not support PUT COMMAND
Post by: 3304xfq on April 15, 2009, 05:10:37 PM
 :)