473,911 Members | 5,861 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 1422
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
3141
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") & "<br><br>")
4
1616
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
2450
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 SP_Lettura ed accetta tre parametri interi P1,P2,P3. ....
1
4790
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" action="https://payflowlink.verisign.com/payflowlink.cfm"> <input type="hidden" name="name" value="john adams">
2
12566
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
2985
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? Another thing, "Content-Type: multipart/form-data;
10
3454
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 php with an ASP alternative. However, after doing many searches on google and reading a couple...
2
2143
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
2641
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 dell'accesso anonimo e
0
10038
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9879
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11349
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9728
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8099
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7250
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5940
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4341
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3360
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.