0

Curl command from Postman not working. HTTP request works through Postman.

curl --location --request POST 'http://localhost:8080/upload' --form 'file=@/C:/Users/documents/test.txt'

iter.hasNext() returns false instead of true.

1 Answer 1

1

It seems you missed the -F option. See this answer for example.

Sign up to request clarification or add additional context in comments.

1 Comment

Doesn't work as well. I believe --form is the same as -F

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.