problemi con POST

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Heavy

    #1

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

  • Bruno Desthuilliers

    #2
    Re: problemi con POST

    Heavy a écrit :[color=blue]
    > 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...
    >[/color]
    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 ?-)

    Comment

    • Michael Hobbs

      #3
      Re: problemi con POST

      Bruno Desthuilliers wrote:[color=blue]
      > Heavy a écrit :
      >[color=green]
      >> 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...
      >>
      >>[/color]
      > 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 ?-)
      >[/color]
      Aay Enchfray eplyray otay anay Italianay estionquay? Ellway, Iay ancay
      itewray inay aay oreignfay anguagelay ootay!

      - Ikemay

      Comment

      • Alex Martelli

        #4
        Re: problemi con POST

        Heavy <france.macchi@ tele2.it> wrote:
        [color=blue]
        > 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...[/color]

        Riprova a it.comp.lang.py thon

        Try again at it.comp.lang.py thon


        Ciao,

        Alex

        Comment

        • Heavy

          #5
          Re: problemi con POST

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

          Comment

          • bruno at modulix

            #6
            Re: problemi con POST

            Heavy wrote:[color=blue]
            > 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...[/color]
            <ot>
            usually, the comp.* usenet hierarchy is english-speaking.
            </ot>
            [color=blue]
            > 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...[/color]

            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 'onurb@xiludom. gro'.split('@')])"

            Comment

            • Alex Martelli

              #7
              Re: problemi con POST

              Heavy <france.macchi@ tele2.it> wrote:
              [color=blue]
              > 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...[/color]

              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

              Comment

              Working...