-
Notifications
You must be signed in to change notification settings - Fork 3k
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
use the FastHttpLocust,how to get cookies ? #861
Comments
somebody know? |
因为Locust是采用requests库,所以使用requests.session可获取Cookies; |
@1fengchen1 我是说使用了geventclient库如何获取,不是requests库 |
FastHttpLocust use cookiejar to manager cookies, you can get cookies by locust/locust/contrib/fasthttp.py Line 85 in f02363a
|
@xinke2411 thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of issue / feature request
@heyman hello,
from locust import TaskSet,task
from locust.contrib.fasthttp import FastHttpLocust
response = self.client.post()
how can get cookies from server response?
Expected behavior
can get cookies
Actual behavior
can not get cookies
Environment settings (for bug reports)
Steps to reproduce (for bug reports)
TBD - example code appreciated
The text was updated successfully, but these errors were encountered: