You can try using the cURL package with PHP. I use it with a system call.

$curl_path = /usr/bin/curl; # or full path of curl

$post = 'amount=3.40&merchant_id=2351235'; #POST  key value pairs with &,
these variables will be POSTed to site

$command = "$curl_path -d \"$post\" $gateway_url";

exec($command, $responce);

the $responce variable holds any out put from the site.

Then you  will have to parse the HTML (which I hate).

The above technique is best for when the site you call post back variables
(thus no parsing).

Now, this is with PHP with no cURL package, if you have it installed than
maybe you can use the cURL Library to do the above.

"Valentin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi all,
>
> is it possible with php:
> first to pass request to another URL and after that to get the html
responce
> as a string and put it into php $variable?
>
> best,
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to