mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[GH-ISSUE #191] Set proxy in curl options? #128
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Marixlive on GitHub (May 9, 2020).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/191
Hey Man. Thanks very much for this amazing php libary. I like to use a proxy server for the api calls.
The auto_retry options works perfectly if i use this code.
Now i use this code to set a proxy with the curl options in php but nothing happens.
I also tried to set the options on the Request object as described in the updated docs from your libary.
i cant get this to work, do you have any ideas?
i use this script to test a php curl call over a http web proxy. this example is working.
Thank you very much for help and have a nice weekend. matthias
@Marixlive commented on GitHub (May 9, 2020):
i use version 3.4.0 and this is the doc site Setting custom cURL options
@jwilsson commented on GitHub (May 9, 2020):
Hi!
Thank you for the kind words!
I'm guessing you're not able to get an access token either? It's poorly documented, but it is possible to pass a
Requestinstance to theSessionconstructor too. For example:curl_optionsaren't passed on to theRequestinstance andauto_retryneeds to be set on theSpotifyWebAPIinstance. I'll try to make this more clear in the documentation. I'll also update the docs with better info on how to pass aRequestinstancetoSession`.I hope this solves your issue!