Article delegate-en/52 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] How to use "PUT" method in "HTTP/FTP" gate?
26 Aug 1998 11:55:18 GMT Erik Wang <pf4aabdyi-t6uzp54frj3r.ml@ml.delegate.org>


Hi,
	When I trace the delegate5.6.5's source, I find a interest
method. as following: (in ftpgw.c, line 776)
============================
            if( put ){
                char cLeng[1024],*buff,*malloc();
                int Length,rcc;

               
HTTP_getRequestField(Conn,"Content-Length",cLeng,sizeof(cLeng));
                Length = atoi(cLeng);
                if( Length <= 0 ){
                       
putHttpHeader1(Conn,tc,DGserv(),"text/html",NULL,0,0);
                        fflush(tc);
                        fclose(tc);
                        totalc = copyfile1(fc,svdata);
                }else{
                        buff = malloc(Length);
                        rcc = freadTIMEOUT(buff,1,Length,fc);
                        totalc = fwriteTIMEOUT(buff,1,rcc,svdata);
                        free(buff);
                       
putHttpHeader1(Conn,tc,DGserv(),"text/html",NULL,0,0);
                }
                sv1log("FTP/HTTP DONE: PUT %d bytes\n",totalc);
================================

it seem means that we can put data by HTTP protocol!
I know some cgi can do it, but I don't know DELEGATE how to
use it in "HTTP/FTP" gate.

could anyone tell me how to do it?

AND, when I make finish, I got a lot of program, as,
===========
total 13982         2240 durl*             2 sample.shio    2304
thruwayd*
2448 delegated*       22 embed*           70 shio*          2256
urlfind*
2256 dget*           128 ls2html*       2256 teleport.exe*
===========
but where is the document? how to use them?
who know?

thank you very much.....


--
Name: Erik Wang (Jyh4-Shyang2 Wang)		E-Mail: pf4aabdyi-t6uzp54frj3r.ml@ml.delegate.org
Desktop/Mobile Focus Group, Silicon Integrated Systems Corp.	ext:4367

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V