Questions tagged [twisted.web]

Twisted Web provides a simple, stable HTTP server built on top of Twisted framework. It is suitable for all types of web apps and web services. It provides a flexible resource publishing API, and implements HTTP 1.0 with some 1.1 features. It can also be used for hosting WSGI applications.

199 questions
1
vote
2 answers

how to recieve line from a html page to twistd web server

I just want to ask that if it is possible to to receive chat from an HTML page to twisted web server and PUSH it on to another HTML page asynchronously. I just want someone to point out the way to do this and things to use (I want to avoid using web…
mayank vats
  • 444
  • 2
  • 6
  • 17
1
vote
2 answers

Twisted execute python file

Is there any way to get a twisted webserver to execute a python file like cgi on a conventional webserver? So, when i navigated to a directory, i could execute python within a seperate file? I have created a basic webserver, but it only returns…
user1310420
1
vote
1 answer

Twisted HTTP server authentication

I am following following tutorial for http server authentication http://www.tsheffler.com/blog/?p=502&cpage=1#comment-1959 I can run the server on my localhost but how can I login to server. The user name password of the server are temporarily save…
Aqeel Raza
  • 1,729
  • 4
  • 15
  • 24
1
vote
1 answer

Modifying Twisted's FileSender() to support byte range headers

I'm using twisted as part of my video streaming application, HTML5 video streaming relies heavily on byte-range for scrubbing... but FileSender doesn't seem to support byte-range (leading to a few problems). Previously I was just passing everything…
monkeymad2
  • 153
  • 1
  • 11
1
vote
1 answer

Problems extending twisted.web's static.File class

I'm trying to add transcoding support to some server I'm writing, I need to get in between the request being received and being carried out. Currently I've got: class TransCodingFile(static.File): def render(self,request): …
monkeymad2
  • 153
  • 1
  • 11
1
vote
1 answer

How do I send video files that are being transcoded live with Python's Twisted.web?

I'm building a video streamer using Python's Twisted.web with callbacks to ffmpeg. I'm wondering, since I'm sending the files through using 'return file.read()' there'll be problems with sending the transcoded output since it won't be available to…
monkeymad2
  • 153
  • 1
  • 11
1
vote
2 answers

Controlling a Twisted Server from Django

I'm trying to build a Twisted/Django mashup that will let me control various client connections managed by a Twisted server via Django's admin interface. Meaning, I want to be able to login to Django's admin and see what protocols are currently in…
Cerin
  • 60,957
  • 96
  • 316
  • 522
1
vote
3 answers

Twisted listenSSL virtualhosts

Currently using a really simple Twisted NameVirtualHost coupled with some JSON config files to serve really basic content in one Site object. The resources being served by Twisted are all WSGI objects built in flask. I was wondering on how to go…
DeaconDesperado
  • 9,977
  • 9
  • 47
  • 77
1
vote
1 answer

Twisted web - Keep request data after responding to client

I have a front-end web server written in Twisted Web, that interfaces with another web server. Clients upload files to my front-end server, which then sends the files along to the back-end server. I'd like to receive the uploaded file, and then send…
1
vote
1 answer

Twisted simple HTTP proxy contd

I have found this script on this site: from twisted.web import proxy, http from twisted.internet import reactor import sys class MyProxy(proxy.Proxy): def dataReceived(self, data): print data return proxy.Proxy.dataReceived(self,…
torayeff
  • 9,296
  • 19
  • 69
  • 103
0
votes
1 answer

using TWISTED python sometimes i am getting unwanted hex data

I used python twisted and receiving data properly only sometimes I am receiving data with hex dat like this: b'\x05\x00\x00\x00\xe9\x00{ "iMsgType": 5,…
0
votes
1 answer

Python Twisted rpy module called multiple times - why?

I am programming Python the first day today. I am running Twisted webserver like this /usr/bin/python3 -m twisted web --http=80 --path=/website I wanted to add a scripted page using an .rpy file at /test.rpy This is the code in the test.rpy…
zeb3142
  • 81
  • 1
0
votes
0 answers

Generating and serving a PDF file with twisted

I would like to realize the following with twisted web: The user clicks on a link on a page This is bring the user to a temporary page where the user is informed that the PDF is generated When the PDF generation is finished, the download starts…
toto
  • 110
  • 1
  • 6
0
votes
1 answer

Twisted web problem when serving docx files

I have a question for you! I'm running a simple webserver with twistd web and it works great must of the time. I have a problem serving .docx files. Let me explain with an example. On my webserver I have two files: file.pdf and file.docx (the x is…
toto
  • 110
  • 1
  • 6
0
votes
1 answer

How to write messages in file from threads in twisted?

I want to write a custom log file this simple string, but log.msg write all events from script. How to made a third custom log file ? ( log.err, log.msg, log.custom ) ?
Bdfy
  • 23,141
  • 55
  • 131
  • 179