I just discovered this great function. Unfortunately, I can not get it working as I need.
This works great:
$curl_handle = curl_init('http://www.mydomain.com/test.php');
$curl_return = curl_exec($curl_handle);
curl_close($curl_handle);
But I need it something like this:
$user = "user1";
$day = "day1";
$curl_handle = curl_init("http://www.mydomain.com/test.php?user=$user&day=$day");
$curl_return = curl_exec($curl_handle);
curl_close($curl_handle);
I spent a lot of time and all what I get is:
Bad Request
Your browser sent a request that this server could not understand.
Any ideas?
Thank you.