Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandoncordell/77ab6fe3ea53b140e3e4330a224f6841 to your computer and use it in GitHub Desktop.
Save brandoncordell/77ab6fe3ea53b140e3e4330a224f6841 to your computer and use it in GitHub Desktop.
2016-06-08 10:28:07 Debug: Httpful\Response Object
(
[body] => stdClass Object
(
[code] => forbidden
[message] => permission denied
)
[raw_body] => {"code":"forbidden","message":"permission denied"}
[headers] => Httpful\Response\Headers Object
(
[headers:Httpful\Response\Headers:private] => Array
(
[server] => Cowboy
[connection] => keep-alive
[x-powered-by] => Express
[vary] => Origin
[access-control-allow-credentials] => true
[access-control-expose-headers] => Link
[content-type] => application/json; charset=utf-8
[content-length] => 50
[etag] => W/"32-6a15dd6e"
[date] => Wed, 08 Jun 2016 14:28:04 GMT
[via] => 1.1 vegur
)
)
[raw_headers] => HTTP/1.1 403 Forbidden
Server: Cowboy
Connection: keep-alive
X-Powered-By: Express
Vary: Origin
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Link
Content-Type: application/json; charset=utf-8
Content-Length: 50
Etag: W/"32-6a15dd6e"
Date: Wed, 08 Jun 2016 14:28:04 GMT
Via: 1.1 vegur
[request] => Httpful\Request Object
(
[uri] => https://bln-atlas-demo.herokuapp.com/users/1001/products/1307
[method] => PUT
[headers] => Array
(
[Authorization] => Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpbiI6dHJ1ZSwidXNlcklkIjo5OSwib3JnYW5pemF0aW9uSWQiOjEwMCwicmV0dXJuVXJsIjpudWxsLCJuYmYiOjE0NjUzOTU3ODQxODEsImV4cCI6MTQ2NjAwMDg4NDE4MX0.AaaiCwvNPeV6WMubYKozFAlBouJcI0gPcxylbiuJ8rg
[Content-Length] => 17
)
[raw_headers] => PUT /users/1001/products/1307 HTTP/1.1
Host: bln-atlas-demo.herokuapp.com
Expect:
User-Agent: Httpful/0.2.20 (cURL/7.43.0 PHP/5.6.20 (Darwin) Apache/2.4.18 (Unix) .6.20 LibreSSL/2.2.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36)
Content-Type: application/json
Accept: */*; q=0.5, text/plain; q=0.8, text/html;level=3;
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpbiI6dHJ1ZSwidXNlcklkIjo5OSwib3JnYW5pemF0aW9uSWQiOjEwMCwicmV0dXJuVXJsIjpudWxsLCJuYmYiOjE0NjUzOTU3ODQxODEsImV4cCI6MTQ2NjAwMDg4NDE4MX0.AaaiCwvNPeV6WMubYKozFAlBouJcI0gPcxylbiuJ8rg
Content-Length: 17
[strict_ssl] =>
[content_type] => application/json
[expected_type] =>
[additional_curl_opts] => Array
(
)
[auto_parse] => 1
[serialize_payload_method] => 2
[username] =>
[password] =>
[serialized_payload] => {"role":"member"}
[payload] => {"role":"member"}
[parse_callback] =>
[error_callback] =>
[send_callback] =>
[follow_redirects] =>
[max_redirects] => 25
[payload_serializers] => Array
(
)
[_ch] => Resource id #705
[_debug] =>
)
[code] => 403
[content_type] => application/json
[parent_type] => application/json
[charset] => utf-8
[meta_data] => Array
(
[url] => https://bln-atlas-demo.herokuapp.com/users/1001/products/1307
[content_type] => application/json; charset=utf-8
[http_code] => 403
[header_size] => 323
[request_size] => 676
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.232582
[namelookup_time] => 1.8E-5
[connect_time] => 0.044484
[pretransfer_time] => 0.094201
[size_upload] => 17
[size_download] => 50
[speed_download] => 214
[speed_upload] => 73
[download_content_length] => 50
[upload_content_length] => 17
[starttransfer_time] => 0.232559
[redirect_time] => 0
[redirect_url] =>
[primary_ip] => 54.243.242.176
[certinfo] => Array
(
)
[primary_port] => 443
[local_ip] => 192.168.200.183
[local_port] => 57904
)
[is_mime_vendor_specific] =>
[is_mime_personal] =>
[parsers:Httpful\Response:private] =>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment