[Twisted-web] Sending file

coder_gus coder_gus at lavabit.com
Sun Feb 24 12:30:22 EST 2008


You could use twisted.protocols.basic.FileReceiver ?
Just a thought.

Evandro Dugnani wrote:
> Hi there,
>
>   I've built a HTTP server using Twisted (class derived from 
> "http.Request"), and it works ok.
>   Client sends a variable as a GET argument and server reads and 
> interpret this variable contents (it's like a "fake protocol"). Client 
> send text and server read and reply text too.
>   Now I want to do this: listen HTTP requests in one TCP port and send 
> a link to client informing a URI to a file (no changes until here). 
> But this file will be provided for this same server. So, client will 
> ask for this file in another TCP port listened by my server.
>   Anyone can give me a tip to implement it using Twisted?
>
>   Thanks in advance.
>   Regards,
>
> Evandro
> Click to learn how you can earn extra cash in day trading.
> http://ads.lavabit.com/fc/Ioyw6kddGzKRwQxCza7jIZ7clbGSO2ODPvaTlf5zPWiABHlU6awGkF/ 
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>   




More information about the Twisted-web mailing list