<br><br><div class="gmail_quote">On Sun, Apr 18, 2010 at 8:53 PM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On 16 Apr, 04:24 am, <a href="mailto:tuxattack14@gmail.com">tuxattack14@gmail.com</a> wrote:<br>
&gt;Hi,<br>
&gt;I am trying to use php script on twisted server using twcgi.I want to<br>
&gt;make<br>
&gt;use of http POST method in that.What I want to do is, suppose I am<br>
&gt;having<br>
&gt;one html page say index.html and from that page I want to redirect to<br>
&gt;other<br>
&gt;php page and pass data to that php page using POST method.But I am not<br>
&gt;able<br>
&gt;to access any POST data in php script.When I debugged through<br>
&gt;twcgi.CGIScript.render method, I didn&#39;t find any reference to POST<br>
&gt;data.So<br>
&gt;how can i make use of POST data in php ?<br>
<br>
</div></div>I don&#39;t really understand the question.  You have a lot of stuff going<br>
on here:<br>
<br>
  * HTTP POSTs<br>
  * Redirects<br>
  * CGIScript<br>
  * PHP<br>
<br>
Can you try to describe the scenario you&#39;re trying to get working step<br>
by step, carefully separating each of these different pieces?<br>
<br>
You may also want to post follow-ups to the twisted-web mailing list<br>
instead.<br>
<br>
Jean-Paul<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" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br>My aim is to build a server that will support file uploading on server and uploading is to be done using web browser.So i selected php script for file upload.<br>I made a simple html form.<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
&lt;html&gt;<br>&lt;body&gt;<br>&lt;div align=&quot;center&quot;&gt;<br>&lt;br /&gt;<br>&lt;form enctype=&quot;multipart/form-data&quot; action=&quot;upload_file.php&quot; method=&quot;POST&quot;&gt;<br> Please choose a file: &lt;input name=&quot;upload_file&quot; type=&quot;file&quot; /&gt;&lt;br /&gt;<br>
 &lt;input type=&quot;submit&quot; value=&quot;Upload&quot; /&gt;<br> &lt;/form&gt; &lt;/body&gt;<br>&lt;/html&gt;<br></blockquote><br><br>Now this file is sent using POST method and then it will redirect to a php script named upload_file.php. <br>
So to make use of php i used twcgi.PHPScript. When i checked i am not getting POST data in php code.<br>Execution calls twcgi.CGIScript.render method internally.When i checked in this render method, data sent using POST is available in request.args variable but not sent to php CLI.<br>
Whereas in case of GET method the url is parsed and data sent using GET method is put in qargs variable and then sent to php CLI.<br>