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

How to send Ajax requestes ? #219

Closed
parthaaptuz opened this issue Dec 15, 2014 · 4 comments
Closed

How to send Ajax requestes ? #219

parthaaptuz opened this issue Dec 15, 2014 · 4 comments

Comments

@parthaaptuz
Copy link

How do i send Ajax requests using this ?

@Jahaja
Copy link
Member

Jahaja commented Dec 15, 2014

By requesting the http endpoint used by the ajax call.

@Jahaja Jahaja closed this as completed Dec 15, 2014
@parthaaptuz
Copy link
Author

actually it is related to python-request module, i've specified "X-Requested-With':'XMLHttpRequest'" in header, this make difference between normal and ajax call,

I didn't get your answer.

@cgbystrom
Copy link
Member

This is a question related to the HTTP library used by Locust, requests.

I think you can find the answer to your question here: http://stackoverflow.com/questions/23226074/simulating-ajax-post-call-using-python-requests

@Ravi1795
Copy link

Hi,

Can anyone provide the solution to how to test ajax requests in locust? or provide the script?

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

4 participants