0
A
回答
0
我一直在管理我的問題。我將來自服務器的響應保存到文件中。這是一點點代碼,如果這可能對某人有幫助。
$url = Camera::$HOST . Image::$URI . '/' . Camera::$cameralist[$i]['cameraId'];
$request = \Httpful\Request::get($url)
->send();
$path = 'image_' . Camera::$cameralist[$i]['cameraId'] . '.jpeg';
$this->setPath($path);
$fp = fopen($path, 'w');
fwrite($fp, $request);
fclose($fp);
相關問題
- 1. Httpful和Laravel,錯誤類「Httpful」未找到
- 2. 經典ASP Amazon S3的休息授權
- 3. 使用httpful PHP庫
- 4. 數組中的Httpful JSON
- 5. 轉換非休息休息api
- 6. Eazfuscator.NET休息Enum.IsDefined
- 7. 在WCF休息
- 8. 休息呼叫
- 9. JacksonFeature休息JsonIgnoreProperties
- 10. Heroku current_page?休息
- 11. GORM休息(Grails)?
- 12. AVComposition休息Airplay
- 13. pjax休息jquery.chosen
- 14. Windev - API休息
- 15. 休息給404
- 16. prettyPhoto休息document.ready()
- 17. 上休息
- 18. express.cookieSession休息session.destroy
- 19. dequeueReusableCell休息cliptobounds
- 20. 休息關係?
- 21. dismissViewControllerAnimated休息GUI
- 22. 休息API
- 23. 休息通用
- 24. MethodValidationPostProcessor休息@Transactional
- 25. node.js休息json
- 26. WSGI休息
- 27. 利用休息
- 28. 與休息
- 29. 價值休息
- 30. 引導休息
因此,您試圖使用使用JSON傳遞數據的API? – spencdev
請[編輯]你的問題,並提供一個* short *的例子,說明這種'GET'的反應是什麼樣的。 – 2016-03-01 09:32:04