Skip to content

Instantly share code, notes, and snippets.

@rjmackay
Created September 3, 2012 22:44
Show Gist options
  • Save rjmackay/3614288 to your computer and use it in GitHub Desktop.
Save rjmackay/3614288 to your computer and use it in GitHub Desktop.
HTTP Response/Request when registering for crdmp3
POST /v1/session/register/ HTTP/1.1
Host: api.crdmp3.com
Content-Length: 94
Origin: http://crdmp3.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: application/json, text/javascript, */*; q=0.01
Referer: http://crdmp3.com/
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
email=robbie%40ushahidi.com&password=r9R9N6OFKspVYWGP2kxo&username=rjmackay&name=Robbie+Mackay
HTTP/1.1 500 Internal Server Error
Server: nginx
Date: Mon, 03 Sep 2012 22:42:20 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=5
X-Powered-By: PHP/5.3.9
{"title":"Slim Application Error","code":8,"message":"Undefined variable: confirm","file":"\/root\/cm3\/api\/helpers\/crowdmapid.php","line":117,"trace":[{"file":"\/root\/cm3\/api\/helpers\/crowdmapid.php","line":117,"function":"handleErrors","class":"Slim","type":"::","args":[8,"Undefined variable: confirm","\/root\/cm3\/api\/helpers\/crowdmapid.php",117,{"email":"robbie@ushahidi.com","password":"r9R9N6OFKspVYWGP2kxo","app":{}}]},{"file":"\/root\/cm3\/api\/resources\/sessions.php","line":177,"function":"userCreate","class":"crowdmapid","type":"::","args":["robbie@ushahidi.com","r9R9N6OFKspVYWGP2kxo"]},{"file":"\/root\/cm3\/api\/core\/router-api-1.php","line":299,"function":"register","class":"sessions","type":"::","args":[{"email":"robbie@ushahidi.com","password":"r9R9N6OFKspVYWGP2kxo","username":"rjmackay","name":"Robbie Mackay"}]},{"function":"{closure}","args":[]},{"file":"\/root\/cm3\/api\/slim\/Route.php","line":395,"function":"call_user_func_array","args":[{},[]]},{"file":"\/root\/cm3\/api\/slim\/Slim.php","line":1145,"function":"dispatch","class":"Slim_Route","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/Flash.php","line":84,"function":"call","class":"Slim","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/MethodOverride.php","line":91,"function":"call","class":"Slim_Middleware_Flash","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Middleware\/PrettyExceptions.php","line":65,"function":"call","class":"Slim_Middleware_MethodOverride","type":"->","args":[]},{"file":"\/root\/cm3\/api\/slim\/Slim.php","line":1097,"function":"call","class":"Slim_Middleware_PrettyExceptions","type":"->","args":[]},{"file":"\/root\/cm3\/api\/index.php","line":55,"function":"run","class":"Slim","type":"->","args":[]}],"status":500}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment