guzzlehttp

    0熱度

    1回答

    我試圖通過Tumblr PHP API對用戶進行身份驗證。 我得到這個錯誤 Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certifica

    0熱度

    1回答

    請問我應該如何發送一個文件上傳到api上? 在API服務器,我們有一個POST方法,它給出了兩個參數:查詢 一個name和formData一個文件,那麼它提供了一個鏈接作爲響應體。 我要通過客戶端狂飲這種格式發送文件: $file = $request->file('InputFile'); $file_path = $file->getPathname(); $response = $thi

    1熱度

    1回答

    我的nginx的配置 文件的nginx/nginx.conf #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events {

    0熱度

    1回答

    我有一個具有不同IP地址的Web服務器。 阿帕奇virtualhosts和DNS映射是這樣的: ip1 => ip1.domain.com ip2 => ip2.domain.com ip3 => ip3.domain.com 我這樣做,所以我可以從不同的IP地址使用guzzlehttp。 但如果我這樣做,任何那些virthual主機上: $client = new \GuzzleHttp

    11熱度

    3回答

    我正在嘗試爲名爲creditguard的本地網關創建自定義的omnipay驅動程序。 對於此網關,您需要將數據發佈到端點並獲取付款表單的重定向網址。 我的問題是如何在購買前發佈並獲得響應? 編輯: Gateway.php class Gateway extends AbstractGateway { public function getName() { retu

    0熱度

    1回答

    我已經安裝了客戶端,並使用composer dump autoload做了更新,但我仍然得到相同的錯誤。在通過composer安裝後需要guzzlehttp/guzzle:〜6.0在projects目錄下。 $client = new GuzzleHttp\Client(); 爲什麼不工作,爲什麼它甚至會引用錯誤的目錄?

    0熱度

    1回答

    我試圖創建與標題和內容到位桶的問題創建問題,但它與錯誤失敗: {"type": "error", "error": {"fields": {"content": "expected a dictionary"}, "message": "Bad request"}} 但是,如果我不發送content,只有在title,它的工作原理,並在創建問題 下面是相關代碼 $response = $thi

    1熱度

    1回答

    我想通過它的API將gcode文件上傳到我的八段打印。 鏈接到其文檔:http://docs.octoprint.org/en/master/api/files.html#upload-file-or-create-folder Octoprint響應內部服務器錯誤。 在檢查其日誌文件,我發現下面幾行表示octoprints上傳功能的問題 File "/home/pi/oprint/local/l

    1熱度

    1回答

    我需要爲laravel安裝omnipay包。 composer require ignited/laravel-omnipay 在安裝包中收到一個錯誤: Your requirements could not be resolved to an installable set of packages. 隨着列表中的問題: Problem 1 - Installation request fo

    0熱度

    1回答

    在狂飲5.3,你可以在下面的例子中使用event subscribers爲: use GuzzleHttp\Event\EmitterInterface; use GuzzleHttp\Event\SubscriberInterface; use GuzzleHttp\Event\BeforeEvent; use GuzzleHttp\Event\CompleteEvent; class