Re: HTTP POST..

From: Date: Tue, 11 Sep 2001 17:04:56 +0000
Subject: Re: HTTP POST..
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-66850@lists.php.net to get a copy of this message
i've figured out post works.... ----- Original Message ----- From: "Tom Carter" <subs@roundcorners.com> To: "ReDucTor" <sjdtmv@tpg.com.au>; <php-general@lists.php.net> Sent: Tuesday, September 11, 2001 4:01 AM Subject: Re: [PHP] HTTP POST.. > PHP is probably compiled as a module.. if you want to be able to compile php > to use on command line you need to compile a second version (yes you can > have two) without all the apache configure options (ie only things like > mysql as and when needed) > > ----- Original Message ----- > From: "ReDucTor" <sjdtmv@tpg.com.au> > To: <php-general@lists.php.net> > Sent: Monday, September 10, 2001 5:26 PM > Subject: [PHP] HTTP POST.. > > > > Ok, > > Let me explain my situation... > > > > I am trying to make an autoresponder, I want to make it in PHP, I am > using > > qmail, so in PHP what i was hoping to do was read STDIN, and put in my > > .qmail the path to php, then the script, but I don't know where php is > > located on the server(not my server, i've tried the common paths, they > don't > > respond to emails), so now what i have done is made a perl script, that > go's > > to the url of the php script, but it doesn't appear to work reading stdin > > from there, so now what i am wanting to do is capture stdin in the perl > > script, then POST it into the PHP script...here is what I have in the perl > > script so far... > > > > #!/usr/bin/perl > > use IO::Socket; > > $host = "www.domain.com"; > > $EOL = "\015\012"; > > $BLANK = $EOL x 2; > > $document = "autoresponder.php"; > > $remote = IO::Socket::INET->new( Proto => "tcp", > > PeerAddr => $host, > > PeerPort => "http(80)", > > ); > > $remote->autoflush(1); > > print $remote "GET http://$host/$document > > HTTP/1.1". $EOL; > > print $remote "HOST: ". $host. $BLANK; > > while ( <$remote> ) { } > > close $remote; > > > > BTW I have been looking at RFC 2616 informatino, but Havn't managed to > find > > anything... > > > > - James "ReDucTor" Mitchell > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#66850) next »