Skip to content

Help with POST #3061

Answered by jcamiel
magick93 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @magick93

The 400 error code Bad request indicates that there could be an error with the requests headers, or body.

First of all, you can run your script with --verbose. This way, you can check that the requests headers are those expected. You can see also the curl command line in Hurl debug logs. You can try this curl command line to check that you've the same error (in case of a potential bug in Hurl).

You have also --very-verbose option that give you more details (mainly libcurl logs).

Another possibility, instead of this syntax:

POST https://my.service.domain/
[BasicAuth]
token: hello_world
```json
{
  "category_details": {
    "category_name": "Some Category",
    "parent_category…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jcamiel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants