Hello!
I am having trouble posting to an API with curl. I believe it has to do something with encodeurl() but I am not sure. When i manually copy and past the post information or make am HTML table the post to the API works fine. If I try and:
$curl = 'path to curl';
$url = 'http://somewhere.com/APL.DLL';
$data = 'API=info&XML=<title_api username=username password=passowrd><more stuff></mtitle> ';
exec("$curl \"$data\" $url", $data);
I then parse the $data here.
It never seems to work right because I feel the XML= stuff is not formatted properly for the POST.
If anyone cuold help I would really apprecaite it!
Tiberius