Comments (5)
What you try to achieve? Do you want to set a get- or post- or header param?
from yii2-curl.
i try get
from yii2-curl.
Have you tried:
// GET request with GET params
// http://example.com/?key=value&scondKey=secondValue
$curl = new curl\Curl();
$response = $curl->setGetParams([
'email' => $model-email
])
->get('http://example.com/');
from yii2-curl.
This API need fields[email], from long url:
https://api.unisender.com/ru/api/subscribe?format=json&api_key=KEY&list_ids=134,135&fields[email][email protected]&tags=MyTag1,MyTag2&request_ip=12.34.56.78&request_time=2011-01-01&double_optin=0&confirm_ip=34.56.78.90&confirm_time=2011-01-02&overwrite=0
This is not error, but it be feature
from yii2-curl.
// GET request with GET params
// http://example.com/?key=value&scondKey=secondValue
$curl = new curl\Curl();
$response = $curl->setGetParams([
'fields[email]' => $model-email
])
->get('http://example.com/');
from yii2-curl.
Related Issues (20)
- responseHeaders with ':' truncated HOT 2
- Simultaneus requests HOT 2
- Not installed on PHP 5.6 HOT 1
- How to post with Authorization as header? HOT 1
- Do not reinitialize curl resource. Make several request with the same session/cookies. HOT 4
- Post json string HOT 5
- Issue Server Response not get HOT 2
- Not Getting latest version HOT 5
- POST Request Body Array HOT 2
- Curl not giving me any response HOT 2
- I found a bug in your code - Wrong function patch() HOT 2
- HTTP Method "Options" not supported HOT 3
- Excluded `tests` directory from a composer package HOT 4
- https HOT 1
- set param - "--anyauth" HOT 2
- Serialization of 'CURLFile' is not allowed HOT 5
- Why is "yidas/yii2-bower-asset" required HOT 9
- Proxy support HOT 1
- setOption require string, but curl_setopt_array expects array of constants or ints HOT 1
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 yii2-curl.