rejetto forum

not support PUT COMMAND

Poll

not support PUT COMMAND

PUT
0 (0%)
WEBDAV
0 (0%)

Total Members Voted: 0

0 Members and 1 Guest are viewing this topic.

Offline 3304xfq

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
1.not support PUT COMMAND
2.not support WEBDAV  ("Get":Down File,"Put" UP File,Edit File....)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.


Offline 3304xfq

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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
« Last Edit: April 15, 2009, 02:26:42 PM by 3304xfq »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i understand the code :)
can you post the HTTP request header related to F.Write(s[1],1000)  ?


Offline 3304xfq

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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)


Offline 3304xfq

  • Occasional poster
  • *
    • Posts: 4
    • View Profile