Created
July 20, 2012 17:10
-
-
Save kaorukobo/3151940 to your computer and use it in GitHub Desktop.
post() error with httpful
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('httpful/bootstrap.php'); | |
$resp = \Httpful\Request::post($url)->sendsJson()->body($json)->send(); | |
<b>Fatal error</b>: | |
Uncaught exception 'Exception' with message 'Unable to parse response code from HTTP response due to malformed response' in httpful/src/Httpful/Response.php:128 | |
Stack trace: | |
#0 httpful/src/Httpful/Response.php(38): Httpful\Response->_parseCode('HTTP/1.1 100 Co...') | |
#1 httpful/src/Httpful/Request.php(175): Httpful\Response->__construct('HTTP/1.1 200 OK...', 'HTTP/1.1 100 Co...', Object(Httpful\Request)) | |
#2 Httpful\Request->send() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment