Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
cURL digest
remi
February 2017
Hello,
I'm trying to call data with a curl digest.
In core/controller/rest.php, the method _prepare_digest_auth has :
$digest_params = explode(', ', $digest_string);
but, when I debug $
digest_string, there is no space. When I remove the space in the explode, it works.
But in another server, there are spaces.
It may become from a config, I don't know yet.
It would be cool that the code doesn't care about config
;)
I'm on wamp, the other server run on xamp.
Harro
February 2017
Can you check if it is using "PHP_AUTH_DIGEST" or "HTTP_AUTHORIZATION"?
Might be a Windows thing we need to take into account...
Harro
February 2017
This might address the problem:
https://github.com/fuel/core/commit/9a72b619264955171fa79c3bd8ce5822dae7464b
remi
February 2017
It's works.
Great !
thanks
Harro
February 2017
Cool, thanks for the feedback!
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
February 2017
remi
February 2017