$data = array("fileName" => "$filename",
"file" => rawurlencode(base64_encode($file)),
"title" => "Test",
"description" => htmlentities("<li>Testing HTML <a href=\"http://list.ly/list/8tK-android-games-that-support-xbox-360-controllerhere\">here</a> a list that you can edit as well</li></ul>"),
Looks like JSON is dying along the way due to the html characters. How about changing this to be base64 encoded so we can pass it in?
The error is "A fatal error occurred during model fetch exception Exception : Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)"
I also tried urlencode but then the html shows up as urlencoded...