Helo,
I'm trying to send a GET request to a script that resides at another server.
I could get it working if I were to send the GET request to a script residing in http:// on the server, by changing this line:
$fp= fsockopen ('ssl://' . $url['host'], $port, $errno, $errstr, 120);
to this line:
$fp= fsockopen ($url['host'], $port, $errno, $errstr, 120);
The problem comes when I want to send a GET request to the script that needs to be accessed through https:// request. The code below is supposedly what's used to send the request to https:// (from what I found on the net), but it always gives me an error page saying either: The parameter is incorrect or [p]Page not found[/p].
So, anyways, can someone give me a hint on how to send the GET request to a script through https?
Let's say I want to call https://www.mydomain.com/script.php?name=hello&text=world
Thanks.
I'm trying to send a GET request to a script that resides at another server.
I could get it working if I were to send the GET request to a script residing in http:// on the server, by changing this line:
$fp= fsockopen ('ssl://' . $url['host'], $port, $errno, $errstr, 120);
to this line:
$fp= fsockopen ($url['host'], $port, $errno, $errstr, 120);
The problem comes when I want to send a GET request to the script that needs to be accessed through https:// request. The code below is supposedly what's used to send the request to https:// (from what I found on the net), but it always gives me an error page saying either: The parameter is incorrect or [p]Page not found[/p].
So, anyways, can someone give me a hint on how to send the GET request to a script through https?
Let's say I want to call https://www.mydomain.com/script.php?name=hello&text=world
Thanks.