I need to pass a PHP array to an ASP script on another server. I've already got CURL doing everything right, but I can't figure out how to construct the URL with an array in the querystring so that it won't give me a server error. I would have posted this on an ASP board, but I figured there were probably other PHP coders that had had this problem.
The concept here is that I've got a "user" array with different named keys and I don't know how to pass them in a URL so that ASP will recognize them as an array. I think it's an asp.net server. Anyway, if I wanted to pass an array in a querystring in PHP, I'd do something like this...
suppose my array looked like this:
$user['name']="myname";
$user['address']="1234 somwhere lane";
then my url for a GET request would be
$url="someurl.php?user[name]=$user[name]&user[address]=$user[address]";
And PHP would automatically create the proper "user" array in the $_GET superglobal array.
So my quesiton is, how would I pass the array to an asp.net page? The person running the asp server said to pass them like this:
$url="someurl.php?user.name=$user[name]&user.address=$user[address]";
Basically he seemed to indicate that I should use dot syntax in my URL, but it doesn't seem to work. Any ideas?