You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: