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

Access to HttpSampler attribute #129

Open
oMer59650 opened this issue Oct 10, 2024 · 0 comments
Open

Access to HttpSampler attribute #129

oMer59650 opened this issue Oct 10, 2024 · 0 comments

Comments

@oMer59650
Copy link

Hello,

Once a Http_Sampler is created like below, how is it possible to display the attribute .post and .header please ?
http_sampler = (
HttpSampler("echo_get_request", "https://postman-echo.com/get?var=1")
.header("SomeKey", "some_value")
.post({"var1": 1}, ContentType.APPLICATION_JSON)
)

I tried with http_sampler.post(), but return me : post() missing 2 required positional arguments :'body' and 'content_type'

Thanks for your feedback!
Mat

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