RE: Re: Sending a POST variable to an ASP page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






> To: php-general@xxxxxxxxxxxxx> Date: Wed, 27 Aug 2008 14:07:31 -0500> From: nospam@xxxxxxxxxxxxx> Subject:  Re: Sending a POST variable to an ASP page> > shaun thornburgh wrote:> > Hi,> > > > I need to send a post variable to an ASP page, can I do this within my PHP script?> > > > I don't need to view the page, or get any acknowledgment back, just send the single POST variable...> > > > Thanks for your advice> > _________________________________________________________________> > Get Hotmail on your mobile from Vodafone > > http://clk.atdmt.com/UKM/go/107571435/direct/01/> > If you don't mind building the headers yourself in the code, it's just a > matter of using fsockopen() and then fputs().> > -Shawn> > -- > PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> 
 
Hi Shawn, I have tried the following but it doesnt seem to work: foreach($_POST['newsletter-group'] as $key => $value){   $_POST['addressbookid'] = $value;   $out = "POST /signup.ashx";    $fp = fsockopen("server-url", 80, $errno, $errstr, 30);   if (!$fp) {    echo "$errstr ($errno)<br />\n";   } else {     fputs($fp, $out . "\r\n");    }    fclose($fp);  } Am I building the headers incorrectly?
_________________________________________________________________
Make a mini you on Windows Live Messenger!
http://clk.atdmt.com/UKM/go/107571437/direct/01/

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux