[Question] POST request WithHeaders #129
Answered
by
cchung100m
cchung100m
asked this question in
Q&A
-
Hi @gavv , I am a newbie to golang and learn how to leverage your project to do the RESTful API testing. I can complete the login behavior through postman, however, I turn the related fields in headers of request into the following code, I got the wired error message, I would appreciate if you can point me where should I correct my work, thanks.
Error message:
|
Beta Was this translation helpful? Give feedback.
Answered by
cchung100m
Aug 19, 2019
Replies: 1 comment
-
Hi all, Using WithHeaders is correct because I find the root cause is that the return type of request is not json object but text format.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gavv
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all,
Using WithHeaders is correct because I find the root cause is that the return type of request is not json object but text format.