Re: [PHP] POST without POSTing

2009-10-01 Thread Ben Dunlap
> to make sure the user has properly filled out this form. So I have to > validate it. That's done in the background on the server, naturally. But > once the validating is done, it's time to send the user off to the > secure site with a payload of POST variables. At that point, the user > will ente

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Thu, Oct 01, 2009 at 04:23:46PM -0400, Daniel Brown wrote: > On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > > > Okay, I've figured out how to shove the data through cURL to the > > receiving URL, but then it occurred to me that the client browser must > > go there *as well*. > > > > Wi

Re: [PHP] POST without POSTing

2009-10-01 Thread Daniel Brown
On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > Okay, I've figured out how to shove the data through cURL to the > receiving URL, but then it occurred to me that the client browser must > go there *as well*. > > Will curl_exec() do that on its own, or is there a parameter I need to > feed i

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > > > I'm not sure how to do this. Please no exotic external libraries my > > shared hosting provider doesn't include. RTFM will be fine; just tell me > > which Fine Manual to Rea

Re: [PHP] POST without POSTing

2009-10-01 Thread Kirk . Johnson
Paul M Foster wrote on 09/30/2009 09:29:17 PM: > [PHP] POST without POSTing > > Paul M Foster > > to: > > php-general > > 09/30/2009 09:31 PM > > I have a form that collects certain info via POST. It is re-entrant, so > when the user hits the "sub

Re: [PHP] POST without POSTing

2009-10-01 Thread Tommy Pham
- Original Message > From: Daniel Brown > To: Paul M Foster > Cc: php-general@lists.php.net > Sent: Wednesday, September 30, 2009 9:58:18 PM > Subject: Re: [PHP] POST without POSTing > > On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > > > fsoc

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:24:41 -0400 Daniel Brown wrote: > On Thu, Oct 1, 2009 at 00:16, Paul M Foster > wrote: > > > > However, assuming it *wasn't*, I've found the following example > > from a google search (thank goodness for google's "hinting" or I > > couldn't have found it): > > > > $fp = fso

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > fsockopen() appears to be part of the standard network functions in PHP, > like the header() function. Do you mean that many hosts support the > function (as part of PHP) but don't support its use with external hosts? > Is there a way to deter

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Thu, Oct 01, 2009 at 12:24:41AM -0400, Daniel Brown wrote: > On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > > > However, assuming it *wasn't*, I've found the following example from a > > google search (thank goodness for google's "hinting" or I couldn't have > > found it): > > > > $fp

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:16:27 -0400 Paul M Foster wrote: > On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > > > On Wed, Sep 30, 2009 at 23:29, Paul M Foster > > wrote: > > > > > > I'm not sure how to do this. Please no exotic external libraries > > > my shared hosting provider does

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > However, assuming it *wasn't*, I've found the following example from a > google search (thank goodness for google's "hinting" or I couldn't have > found it): > > $fp = fsockopen("www.site.com", 80); > fputs($fp, "POST /script.php HTTP/1.0 > Ho

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > > > I'm not sure how to do this. Please no exotic external libraries my > > shared hosting provider doesn't include. RTFM will be fine; just tell me > > which Fine Manual to Rea

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > I'm not sure how to do this. Please no exotic external libraries my > shared hosting provider doesn't include. RTFM will be fine; just tell me > which Fine Manual to Read. Nothing too exotic at all, Paul. Check out cURL: http://php

[PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
I'm sure this has been covered before, but I'm not even sure how to search in the archives for it. I have a form that collects certain info via POST. It is re-entrant, so when the user hits the "submit" button, it checks the input and does whatever sanity checks it needs to. If all is okay, it mus