I see the basic's... but...  It's not completely clear from what I'm seeing.

1. It appears if I use the header function I have to redirect the page to
another page, it doesn't appear possible to retrieve a page into the current
page?  Unless someone can show me some code that would do that.

2. it's not clear how you would actually set the HTTP_POST_VARS's and when
you use the header("Request-URI:"); if that uses the HTTP_POST_VARS?

as of right now it looks like the code would go as follows:

<?php
        $HTTP_POST_VARS (not sure how to set these
                Something like this $HTTP_POST_VARS['uid']="userid"; )
        header("Request-URI: http://localhost/cgi-bin/script.pl");
?>

Is that all that has to be done?

thanks,

evan


> -----Original Message-----
> From: Milan Mlynarcik [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, February 19, 2001 7:33 AM
> To:   Montgomery-Recht, Evan
> Subject:      Re: [PHP] HTTP POST Question
> 
> You have to use header() function and how POST work you can find in HTTP
> RFC
> at http://www.w3.org/Protocols/rfc2616/rfc2616.html
> -------------------------------------------------------------
> Milan Mlynarcik
> Web Programmer
> Charmed Technology Slovakia
> Nam. sv. Egidia 16/37
> 058 01 Poprad, Slovakia
> E-mail: [EMAIL PROTECTED]
> Office: 00421 92 7881 874
> Mobile: 00421 905 964 535
> Web page: http://www.charmed.com/
> -------------------------------------------------------------
> ----- Original Message -----
> From: "Montgomery-Recht, Evan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 19, 2001 1:06 PM
> Subject: [PHP] HTTP POST Question
> 
> 
> > Good morning...
> >
> > This should be a good monday morning question.
> >
> > I have a cgi-bin written in perl (it's actually, a interface to a
> > perl-module which is a interface to a telnet-like protocol).
> >
> > Anyways what I need to do is I have already existing code written in
> PHP,
> > but at some point I need to call this cgi-bin and get a return code from
> it
> > and process (good/bad result) and return to completed php script that
> says
> > it called this cgi-bin.  It's not very clear how to set the
> HTTP_POST_VARS
> > for sending to a post command (which doesn't seem to exist);
> >
> > Any ideas I don't see a function called:
> >
> > $HTTP_POST_VARS =set variables;
> > $result = http_post("http://localhost/cgi-bin/script.pl");
> >
> > Thanks,
> >
> > evan
> >
> > PS.  I'd appricate a working example, even if it's a dummy version.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to