Questions tagged [httpful]

Httpful - A Chainable, REST Friendly, PHP HTTP Client. A sane alternative to cURL.

Httpful is a simple Http Client library for PHP 5.3+. There is an emphasis of readability, simplicity, and flexibility – basically provide the features and flexibility to get the job done and make those features really easy to use.


Features

  • Readable HTTP Method Support (GET, PUT, POST, DELETE, HEAD, PATCH & OPTIONS)
  • Custom Headers
  • Automatic "Smart" Parsing
  • Automatic Payload Serialization
  • Basic Auth
  • Client Side Certificate Auth
  • Request "Templates"

Documentation :

37 questions
0
votes
0 answers

how do i make a GET request to Download a file using phphttpclient

Basically I would like to see an example on how to download a file. I can't seem to find on phphttpclient website any doc or example about it. In curl, the request would look like this: curl -o hello.txt -H "X-Auth-Token: xxxxxxxxxxxxxxxxxxx"…
0
votes
2 answers

Httpful and Laravel, error Class 'Httpful' not found

I've installed Httpful as described with Composer adding to composer.json the following: { "require": { "nategood/httpful": "*" } } I'm using Laravel 4 so i ran composer install I've checked if the plugin is installed and is there,…
pm.calabrese
  • 386
  • 6
  • 10
0
votes
1 answer

Using REST to Send XML in PHP using Httpful

I managed to get a SOAP client working for a client but I am now trying to use REST for a slightly different project. I am using Httpful. From what I have read it is what I need in order to do what I've been asked. This is my code so far. /* MAIN…
Brad Bird
  • 737
  • 1
  • 11
  • 30
0
votes
1 answer

Can't Load Composer Package

I'm new to using composer packages. I've gotten a few to work, but I came across a Google Maps package I'd like to use and I can't get it to load properly. php-google-maps package My attempt at using the package:
csm232s
  • 1,660
  • 4
  • 32
  • 60
-1
votes
1 answer

Unable to Parse response as JSON error Symfony

I have a controller that sends a get request and then tries to parse the response as a JSON. However, requesting it through the browser returns a valid JSON object. I'm getting a 500 error that says 'Exception: Unable to parse response as JSON' and…
ybce
  • 176
  • 4
  • 17
-1
votes
1 answer

How to extract CouchDB cookie from Httpful response object in PHP?

I try to authenticate a user via a RESTful API in combination with CouchDB and Httpful. The client sends the credentials of the user to my server and the server forwards them to the CouchDB server. When I var_dump the response, I can see that the…
Magiranu
  • 299
  • 4
  • 27
-3
votes
2 answers

How to give Httpful a String with double quotes in it?

The idea is to send terms like bob & \\apples to a server. I get this error: Fatal error: Maximum execution time of 30 seconds exceeded public function index($request, $response) { $uri = 'http://example.org/folder?key=["bob",…
Magiranu
  • 299
  • 4
  • 27
1 2
3