RE: [PHP] Re: Sending a POST variable to an ASP page

2008-08-28 Thread shaun thornburgh


Date: Wed, 27 Aug 2008 15:07:53 -0600From: [EMAIL PROTECTED]: [EMAIL 
PROTECTED]: Re: [PHP] Re: Sending a POST variable to an ASP page
well that would constitute a particular reason :)
On Wed, Aug 27, 2008 at 2:55 PM, shaun thornburgh <[EMAIL PROTECTED]> wrote:



> Date: Wed, 27 Aug 2008 14:45:42 -0600> From: [EMAIL PROTECTED]> To: [EMAIL 
> PROTECTED]> CC: php-general@lists.php.net> Subject: Re: [PHP] Re: Sending a 
> POST variable to an ASP page 


> > On Wed, Aug 27, 2008 at 2:41 PM, shaun thornburgh <> [EMAIL PROTECTED]> 
> > wrote:> > > > To: php-general@lists.php.net> Date: Wed, 27 Aug 2008 
> > 14:07:31 -0500>> > From: [EMAIL PROTECTED]> Subject: [PHP] 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)\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/> > > > dude, honestly, why 
> > would you take that approach unless you had a particular> reason for it? 
> > especially when you can knock it out in 2 minutes w/ curl...> > btw, google 
> > is pretty key as usual, try googling 'php curl post' ;)> > -nathan Hi 
> > Nathan, Unfortunately I can't install CURL on my server.

Win £3000 to spend on whatever you want at Uni! Click here to WIN!Hi guys, Can 
anyone help with how I need to add the headers to the following code 
please?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)\n";   } else { fputs($fp, $out . "\r\n");   }  
fclose($fp); }Many thanks
_
Win a voice over part with Kung Fu Panda & Live Search   and   100’s of Kung Fu 
Panda prizes to win with Live Search
http://clk.atdmt.com/UKM/go/107571439/direct/01/

Re: [PHP] Re: Sending a POST variable to an ASP page

2008-08-27 Thread Nathan Nobbe
say jesse,

if youre subscribed to php-general, you likely did that yourself ;)

>  > 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]


let me know what the police have to say about it :p

-nathan

On Wed, Aug 27, 2008 at 10:32 PM, jesse church <[EMAIL PROTECTED]>wrote:

> stop emailing me..
> now..i
> never signed up for shit leave me alone taking me off you emailing list or i
> will file charges with the police
>
> --- On *Wed, 8/27/08, Nathan Nobbe <[EMAIL PROTECTED]>* wrote:
>
> From: Nathan Nobbe <[EMAIL PROTECTED]>
> Subject: Re: [PHP] Re: Sending a POST variable to an ASP page
> To: "shaun thornburgh" <[EMAIL PROTECTED]>
> Cc: php-general@lists.php.net
> Date: Wednesday, August 27, 2008, 3:45 PM
>
>
> On Wed, Aug 27, 2008 at 2:41 PM, shaun thornburgh <[EMAIL PROTECTED]> wrote:
>
> > > To: php-general@lists.php.net> Date: Wed, 27 Aug 2008 14:07:31
> -0500>
> > From: [EMAIL PROTECTED]> Subject: [PHP] 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)\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/
>
>
>
> dude, honestly, why would you take that approach unless you had a particular
> reason for it?  especially when you can knock it out in 2 minutes w/ curl...
>
> btw, google is pretty key as usual, try googling 'php curl post' ;)
>
> -nathan
>
>
>


Re: [PHP] Re: Sending a POST variable to an ASP page

2008-08-27 Thread Nathan Nobbe
On Wed, Aug 27, 2008 at 2:41 PM, shaun thornburgh <
[EMAIL PROTECTED]> wrote:

> > To: php-general@lists.php.net> Date: Wed, 27 Aug 2008 14:07:31 -0500>
> From: [EMAIL PROTECTED]> Subject: [PHP] 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)\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/



dude, honestly, why would you take that approach unless you had a particular
reason for it?  especially when you can knock it out in 2 minutes w/ curl...

btw, google is pretty key as usual, try googling 'php curl post' ;)

-nathan


RE: [PHP] Re: Sending a POST variable to an ASP page

2008-08-27 Thread shaun thornburgh




> To: php-general@lists.php.net> Date: Wed, 27 Aug 2008 14:07:31 -0500> From: 
> [EMAIL PROTECTED]> Subject: [PHP] 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)\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/