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
1
vote
2 answers

PHP - How to get httpful phar to work

From http://phphttpclient.com I followed "Install option 1" and the first "quick snippet". I end up with the following, with Request undefined. Additionally, and perhaps relatedly, I am confused by the fact that one of the code samples says…
cja
  • 9,512
  • 21
  • 75
  • 129
1
vote
1 answer

How to redirect/forward request in php?

I use httpful to send http request and get the response to display in request.php include('httpful.phar'); $response = \Httpful\Request::get('http://domain/response.php')->send(); echo '