problemi con POST

H

Heavy

Ciao a tutti,
sto creando una applicazione in python, che deve fungere anche da
server web...
non ho assolutamente problemi a prendere i parametri di una 'GET', mi
limito a fare il parsing della URL, ma come faccio a prendere i
parametri di una 'POST'? io cerco di leggere dal socket di lettura
'rfile' ma poi resto bloccato all'infinito perché evidemente resta in
attesa di qualcosaltro... c'è già qualche metodo che mi può
aiutare?? oppure sapete darmi qualche dritta? grazie...
 
M

Michael Hobbs

Bruno said:
Heavy a écrit :

Désolé, mais je n'ai rien compris (enfin, si : que tu avais des
problèmes pour parser une requête HTTP POST et que tu te retrouvais avec
une lecture bloquante sur un socket, mais ce n'est pas avec ça qu'on va
pouvoir t'aider). Tu pourrais nous reposter ça en english ?-)
Aay Enchfray eplyray otay anay Italianay estionquay? Ellway, Iay ancay
itewray inay aay oreignfay anguagelay ootay!

- Ikemay
 
B

Bruno Desthuilliers

Heavy a écrit :
Ciao a tutti,
sto creando una applicazione in python, che deve fungere anche da
server web...
non ho assolutamente problemi a prendere i parametri di una 'GET', mi
limito a fare il parsing della URL, ma come faccio a prendere i
parametri di una 'POST'? io cerco di leggere dal socket di lettura
'rfile' ma poi resto bloccato all'infinito perché evidemente resta in
attesa di qualcosaltro... c'è già qualche metodo che mi può
aiutare?? oppure sapete darmi qualche dritta? grazie...
Désolé, mais je n'ai rien compris (enfin, si : que tu avais des
problèmes pour parser une requête HTTP POST et que tu te retrouvais avec
une lecture bloquante sur un socket, mais ce n'est pas avec ça qu'on va
pouvoir t'aider). Tu pourrais nous reposter ça en english ?-)
 
B

Bruno Desthuilliers

Michael Hobbs a écrit :
Aay Enchfray eplyray otay anay Italianay estionquay? Ellway, Iay ancay
itewray inay aay oreignfay anguagelay ootay!

didnee !-)

WTB, rof eht elpoep ereh taht t'nod kaeps hcnerf, I saw tsuj gniyrt ot
nialpxe eht PO taht gnitsoper ni hsilgnE thgim eb a doog aedi.
 
A

Alex Martelli

Heavy said:
Ciao a tutti,
sto creando una applicazione in python, che deve fungere anche da
server web...
non ho assolutamente problemi a prendere i parametri di una 'GET', mi
limito a fare il parsing della URL, ma come faccio a prendere i
parametri di una 'POST'? io cerco di leggere dal socket di lettura
'rfile' ma poi resto bloccato all'infinito perché evidemente resta in
attesa di qualcosaltro... c'è già qualche metodo che mi può
aiutare?? oppure sapete darmi qualche dritta? grazie...

Riprova a it.comp.lang.python

Try again at it.comp.lang.python


Ciao,

Alex
 
H

Heavy

Sorry,
you got reason, I thought I can write in my language, cause this is the
first time that I post a question in this group... My problem is that I
have to receive parameters from a POST method, i try to read them from
the socket 'rfile', but this action is blocking, it never finish to
read. Is there some existing method that can help me? Can you help me?
thanks...
 
B

bruno at modulix

Heavy said:
Sorry,
you got reason, I thought I can write in my language, cause this is the
first time that I post a question in this group...
<ot>
usually, the comp.* usenet hierarchy is english-speaking.
My problem is that I
have to receive parameters from a POST method, i try to read them from
the socket 'rfile', but this action is blocking, it never finish to
read. Is there some existing method that can help me? Can you help me?
thanks...

Could you give more precisions about the context, architecture,
librairies used etc ? FWIW, if it's a web application, you should be
able to retrieve the POST parameters via the web application solution
you're using (CGI, mod_python, etc...), so I don't really understand why
you're doing raw socket read ???
 
A

Alex Martelli

Heavy said:
Sorry,
you got reason, I thought I can write in my language, cause this is the
first time that I post a question in this group... My problem is that I
have to receive parameters from a POST method, i try to read them from
the socket 'rfile', but this action is blocking, it never finish to
read. Is there some existing method that can help me? Can you help me?
thanks...

Post your question to it.comp.lang.python -- THAT is an Italian
newsgroup for Python.

Poni la domanda su it.comp.lang.python -- QUELLO e` un newsgroup
italiano per Python.


Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top