質問編集履歴
1
Request_Curlを使用してみたがうまくいきません
test
CHANGED
File without changes
|
test
CHANGED
@@ -139,3 +139,53 @@
|
|
139
139
|
|
140
140
|
|
141
141
|
```
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
追記
|
146
|
+
|
147
|
+
Request_Curlを使用して
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
```php
|
152
|
+
|
153
|
+
testコントローラー
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
public function action_post()
|
158
|
+
|
159
|
+
{
|
160
|
+
|
161
|
+
$url = 'https://test/test';
|
162
|
+
|
163
|
+
$curl = Request::forge($url, 'curl');
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
$curl->set_method('get');
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
$curl->set_params(array('id' => '5134'));
|
172
|
+
|
173
|
+
$response = $curl->execute()->response();
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
}
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
```
|
184
|
+
|
185
|
+
としたのですが
|
186
|
+
|
187
|
+
INFO - 2018-05-17 17:20:00 --> Fuel\Core\Request_Curl::__construct - Creating a new CURL Request with URI = "https://test/test"
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
と表示されてしまいます。
|