Here&#39;s some sample code to get you started:<br><br>&nbsp;&nbsp;&nbsp; def render_PUT(self,request):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Got PUT&quot;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dataPage=request.content.getvalue()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pageNumber=request.args.get(&quot;pagenumber&quot;,(0,))[0]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (responseCode,message) = self._savePage(request.args[&quot;keynumber&quot;][0], self.userId,pageNumber,dataPage)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request.setResponseCode(responseCode)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return message&nbsp; <br><br>notice how you get at the PUT data via request.content.getvalue() I remember needing a while to find that.&nbsp; render_PUT can be added to twisted.web.resource.Resource
 or a subclass as Jarek says.<br><br>-Andy Fundinger<br><br><div><span class="gmail_quote">On 10/12/07, <b class="gmail_sendername">Jarek Zgoda</b> &lt;<a href="mailto:jarek.zgoda@sensisoft.com">jarek.zgoda@sensisoft.com</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Voznesensky Vladimir napisał(a):<br><br>&gt; I need to realise an HTTP server capable of serving PUT request.
<br>&gt; There seems to be no standard twisted implementation for it.<br>&gt; Is it possible to realise and include it into the standard twisted<br>&gt; contribution?<br>&gt; I have no solid idea were to start with it.<br>
<br>Start at twisted.web<br><br>Just write a resource class (subclass of twisted.web.resource.Resource)<br>that handles PUT requests by implementing render_PUT method.<br><br>--<br>Jarek Zgoda<br>Skype: jzgoda | GTalk: <a href="mailto:zgoda@jabber.aster.pl">
zgoda@jabber.aster.pl</a> | voice: +48228430101<br><br>&quot;We read Knuth so you don&#39;t have to.&quot; (Tim Peters)<br><br>_______________________________________________<br>Twisted-Python mailing list<br><a href="mailto:Twisted-Python@twistedmatrix.com">
Twisted-Python@twistedmatrix.com</a><br><a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br></blockquote></div><br><br clear="all">
<br>-- <br>Blog:&nbsp;&nbsp;<a href="http://channel3b.wordpress.com">http://channel3b.wordpress.com</a><br>Second Life Name:&nbsp;&nbsp;Ciemaar Flintoff<br><br>I am a sig Virus. Please put me in your sig so that I can continue to replicate.