Comments (2)
You can make the response an associative array by doing this.
$curl = new Curl();
$curl->get('http://www.example.com/data.json');
$curl->response = json_decode(json_encode($curl->response), true);
from php-curl-class.
Yeah, i know some ways of how to do that. Just was curious maybe you are ready to implement something, actually it would be great to have opportunity to get raw json in addition to auto-parsed answer. Not a big deal if no, thanks for answer.
from php-curl-class.
Related Issues (20)
- Deprecated: Creation of dynamic property Curl\Curl::$rfc6265 is deprecated HOT 2
- CurlStringFile: Object of class CURLStringFile could not be converted to string HOT 1
- Having issues with post json or array HOT 1
- Update ci to work with PHPUnit 10 HOT 1
- Fix recently failing CI HOT 1
- Return types HOT 3
- Unsupported protocol (CURLE_UNSUPPORTED_PROTOCOL): Protocol "ftp" not supported or disabled in libcurl HOT 3
- 302 Moved Temporarily HOT 1
- Curl->diagnose(), uncaught type error if Content-Type is null, PHP 8.1.13 HOT 3
- How to get the list of URLs that have not been executed yet when I use MultiCurl::stop() HOT 3
- Retry manually HOT 3
- issue with response content being double decoded HOT 5
- Detected an illegal character in input string in /var/www/site/vendor/symfony/polyfill-mbstring/Mbstring.php:536 HOT 2
- Error code: 18 error message: Transferred a partial file (CURLE_PARTIAL_FILE): HTTP/2 stream 1 was not closed cleanly HOT 1
- Curl::afterSend with MultiCurl::addCurl HOT 1
- Fix CI
- Fix CI
- multicurl file_get_contents() HOT 1
- setRetry() HOT 1
- MultiCurl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-curl-class.