Page 1 of 1

How do you pass an arg to a script on an ssl server?

Posted: Tue Aug 22, 2006 9:42 am
by zeek
What is the proper way to pass the foo argument from a script on Server A to a script on Server B.

Server A is not running SSL
Server B is running SSL

If I'm going about this all wrong please don't assume that I have a good reason :) My script is running on server A. It needs to pass an argument to a script on Server B. The following two attempts have given confusing results:

Attempt1:

Code: Select all

include('https://securedomaincom/script.php?foo=bar');
This resulted in my browser trying to download the script. Very strange.

Attempt2:

Code: Select all

$result = file('https://securedomaincom/script.php?foo=bar');
This resulted in the following error...

ERROR 2: file(): SSL operation failed with code 1. OpenSSL Error messages: error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG...


What is the proper way to pass the foo argument to a script on Server B? Thanks in advance.

Posted: Tue Aug 22, 2006 11:16 am
by bokehman
Attempt 1 is correct. If its trying to download the file this means php is not installed or not working properly on that server.