473,320 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

problemi con POST

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...

May 10 '06 #1
6 1403
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 ?-)
May 10 '06 #2
Bruno Desthuilliers wrote:
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 ?-)

Aay Enchfray eplyray otay anay Italianay estionquay? Ellway, Iay ancay
itewray inay aay oreignfay anguagelay ootay!

- Ikemay

May 10 '06 #3
Heavy <fr***********@tele2.it> wrote:
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
May 10 '06 #4
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...

May 10 '06 #5
Heavy wrote:
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.
</ot>
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 ???

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
May 10 '06 #6
Heavy <fr***********@tele2.it> wrote:
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
May 13 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
4
by: Roberto | last post by:
Hi, I have Windows Server 2003 + IIS 6.0 with all the security patches released by Microsoft installed until Today. I have an ASP page that calls a method of an object installed under COM +...
1
by: Telemaco | last post by:
Ho la necessità di inserire i risultati di una stored procedure in un dataset. Mi spiego meglio .... Ho costruito una store procedure che incapsula una query di lettura su un database sqlserver...
1
by: khawar | last post by:
my application is in asp.net using C# hi guys having a complicated problem i am using payflowlink to process CC payments I have to send a httppost to their servers. The problem is how do i do a...
2
by: Matt | last post by:
When we submit the form data to another page, we usually do the following: <form action="display.aspx" method="post"> will submit the form data and open display.asp in the current browser ...
1
by: Manuel | last post by:
I have to log into a website and retrieve some information. The problem is that the post isn't "normal". I'm used to passing post values in the form of: Variable1=Value1&Variable2=Value2 etc. I...
10
by: glenn | last post by:
I am use to programming in php and the way session and post vars are past from fields on one page through to the post page automatically where I can get to their values easily to write to a...
2
by: papapo | last post by:
Salve, ho un problema con il controllo imagelist ed in particolare se metto su una form un controllo imagelist e lo riempio con delle icone e le associo ad un tab control, bene a design time vedo...
1
by: romeo.pruno | last post by:
Salve, ho il bisogno di avviare processi di stampa dalla mia applicazione web utilizzando l'utente corrente. Ho editatao il web.config ed ho aggiunto la seguente stringa: <identity...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.