Skip to content

Release 1.12: Net\Browser API stabilization

Compare
Choose a tag to compare
@AnrDaemon AnrDaemon released this 10 Mar 23:21
· 4 commits to master since this release

Release highlights

  • Net\Browser basic API is stable and unlikely to change in the future;
  • Improved CurlException message construction;
  • Net\Url documentation improvements.

Net\Browser

Turned out, CURLOPT_HTTPGET/CURLOPT_POST/CURLOPT_PUT is a request TYPE.
Yes, it implies default method name, but you can change it with CURLOPT_CUSTOMREQUEST
(a method NAME, which does not affect request TYPE).

  • CURLOPT_HTTPGET performs a body-less request;
  • CURLOPT_PUT performs a request with body taken from stream resource;
  • CURLOPT_POST performs a request with body provided as value of a variable,
    if the variable given as an array of values, it is further formatted
    to conform to the [RFC 7578].

CurlException

After catching empty curl_error() return on an obvious cURL error, it came to the realization, that curl_error() returning an error message text, while curl_strerror(curl_errno()) returning textual equivalent of error code.

Net\Url

Improved documentation of some more obscure test cases and fixed typo(s).