I'm passing the string in the url like:
$name = 'Joe Bloggs';
$URL = "http://dummydomain.com/index.php?name=$name"
and using
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $request);
$response = curl_exec ($ch);
curl_close ($ch);
To send it to a API script which is supposed to deal with it, but that script is reading the $_GET['name'] value as 'Joe' and not 'Joe Bloggs'
Does any of that seem like it might be causing the issue?
Sorry about being vague, it's just that the script is part of a massive project so I'm trying to keep the examples as simple as possible.
Thanks