Re: return value from cgi
From: Erwin Moller (since_humans_read_this_I_am_spammed_too_much_at_spamyourself.com)
Date: 01/04/05
- Next message: Börni: "Re: Another Mysql problem. (This Time it is not so dumb)"
- Previous message: knoak: "Connect & Disconnetcting functions"
- In reply to: Pedro Graca: "Re: return value from cgi"
- Next in thread: Pedro Graca: "Re: return value from cgi"
- Reply: Pedro Graca: "Re: return value from cgi"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 04 Jan 2005 12:26:27 +0100
Pedro Graca wrote:
> Paul Bearden wrote:
>> I'm posting a form to a cgi application on another web site.
>
> How? How are you posting the form to the other web site?
>
>> The cgi returns
>> a text message to the browser. How can I capture this text message and
>> redirect based on the text.
>
> curl ( http://www.php.net/curl ) does it all!
>
Hi Pedro,
But how to use curl when posting from a clients machine to another website?
As Daniel pointed out in this thread: Your own server isn't involved!
But both your responses give me the following idea:
Server1 = your own server
Server2 = another server (the one with failure or succes)
Now:
1) Let the forms action NOT be to Server2, but to Server2.
2) Let Server2 (using curl) POST All the data to Server1.
3) Now you can decide what to do on failure or succes.
Maybe this was what you ment in the first place Pedro, in which case I'll
bang my head with a fish.
:-)
Regards,
Erwin Moller
- Next message: Börni: "Re: Another Mysql problem. (This Time it is not so dumb)"
- Previous message: knoak: "Connect & Disconnetcting functions"
- In reply to: Pedro Graca: "Re: return value from cgi"
- Next in thread: Pedro Graca: "Re: return value from cgi"
- Reply: Pedro Graca: "Re: return value from cgi"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|