Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookie support to Pest #51

Open
torenware opened this issue Mar 27, 2014 · 0 comments
Open

Add cookie support to Pest #51

torenware opened this issue Mar 27, 2014 · 0 comments

Comments

@torenware
Copy link
Contributor

I've implemented a way of adding a set of cookie key/value pairs to a Pest request. It works like Pest::setupAuth() and Pest::setupProxy(): it turns the key value pairs into something that can be passed to curl_setopt().

This works at least well enough so that I can authenticate using session cookies against Drupal 7; I expect that most other apps that do this will work as well.

I'll be setting up a pull request shortly.

Thanks,
Rob

torenware added a commit to torenware/pest that referenced this issue Mar 27, 2014
…t to Pest)

I tried as much as possible for the code to look like the rest of Pest.php.
It works for at least my use case (cookie authentication).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant