473,574 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1412
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.py thon

Try again at it.comp.lang.py thon
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.py thon -- THAT is an Italian
newsgroup for Python.

Poni la domanda su it.comp.lang.py thon -- 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
3115
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. When I find is that if I send the value by the GET method, response.write("From QueryString: " & Request.QueryString("usernamefromform") &...
4
1602
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 + <%.... Set ObjMsg = CreateObject("ObjName","ClassName") ObjMsg.Recipient = .....
1
2437
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 che restituisce di dati in formato xml. La clausola utilizzata per avere il risultato in xml è: FOR XML AUTO,XMLDATA, e la stored procedure si chiama...
1
4762
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 post where i get these values like the amount from the database. eg of the post: <form method="post"...
2
12539
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 <form action="display.aspx" method="post" target="_blank"> will submit the form data and open display.asp in a new browser
1
2963
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 used Live Http Headers to retrieve the POST information, I included it at the end of this message. Can anyone tell me how to make THIS kind of post?...
10
3408
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 database or continue to process on to the next page. I am now trying to learn ASP to see if we can replace some of our applications that were written in...
2
2133
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 le icone, ma a run time spariscono. Come posso ovviare a questo problema???
1
2630
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 impersonate="true" userName="" password="" /> Premetto che le configurazioni del mio IIS 5.0 (macchina di sviluppo) sono settate sulla disabilitazione...
0
7799
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8042
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8226
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7806
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8094
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5612
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5297
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3739
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3748
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.