Jump to content
  • 0

HTTP REST API File transfer gives 400 in windows?




I have a REST API for transferring records to the server written in Java with Spring Boot. I am trying the API through postman. The API is working fine in Linux Environment, however, in windows condition, it returns 400 Bad Request as a reaction. There is no adjustment in code in the two frameworks, as I am utilizing a similar container record in the two conditions. 

The POST asks for comprising of a document connection in the frame information and a parameter userName. My API acknowledges the information in that organization as it were. I have checked the headers in the demand for both the machines and I am simply passing a solitary header Content-Type as application/json. 

Thanks and Regards



Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...