middleware, sort of (same question, different posting software)

From: Tigerhillside (Tigerhillsideremove_at_removenetscape.net)
Date: 01/23/04

  • Next message: D. Abaimov : "Re: Save your job, deport H1 B's now"
    Date: Fri, 23 Jan 2004 18:43:10 GMT
    
    

    I forgot I had a "real" newsreader available. So here is the
    question you will see "soon" when google decides to post my other
    question.

    I have a server side script that takes a user's input in a form,
    packages it, and sends it on to an external server. The external
    server will then send back the response via http to my server
    script. But not the same script. And there is the rub, I don't
    know how the second script can get to my user.

    Let me diagram this for clarity.

    The logic is this:

    Client -> me -> XS (external server) -> me -> client

    Simple enough.

    But as I see it, programmatically it goes like this:

    browser -> me script1 -> XS

    XS -> script2 -> browser

    I can't open a pipe to the external server, I only have http
    access. So I can't get the response back in the same script
    AFAICT. My script1 and script2 know enough to know it is the same
    transaction, but script2 can't find the browser/script1
    conversation.

    I suppose I could have script1 wait around until script2 writes a
    token of some sort saying it got the results. That seems like a
    hack, but if that is how it is done I can do that. Wait something
    like 30 seconds, checking every second for the token. Is that how
    it is done or is there a better way? Something like a named pipe
    or something that script2 can get its hands on?

    I know this is not, strictly speaking, a perl language question,
    but it is on topic.

    Thanks very much in advance.


  • Next message: D. Abaimov : "Re: Save your job, deport H1 B's now"

    Relevant Pages

    • Re: Same Internal Server Error from last two days
      ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
      (perl.beginners)
    • Re: Same Internal Server Error from last two days
      ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
      (perl.beginners)
    • Same Internal Server Error from last two days
      ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
      (perl.beginners)
    • Re: Regarding a selection for mobile code/scripting language
      ... Client Side scripting, so the server can send script commands to the client. ... I decided they should be scripted and mobile code. ...
      (Vuln-Dev)
    • Re: HTTPSConnection script fails, but only on some servers (long)
      ... (HTTP/CONNECT + switch to HTTPS) ... wget and my python script. ... >>The python script works with server A, ... the problem seems to depend on both the client ...
      (comp.lang.python)