Skip to content Skip to sidebar Skip to footer

Form Data Submit Working In Postman Not From Browser

I am using postman tool to submit a post request to the following url 'http://localhost:8080/myapp/consumer' and I am not setting any header, but still my application is able to re

Solution 1:

I reproduced your environment and it works with proper values. Most likely your problem is the phone field. Because it isn't an int it can't hold text, an empty value, or a number more than Integer.MAX_VALUE. It also can't be used to hold a typical mobile phone number. Better use String Related question

I'd advise you to open the DevTools of your browser, select the Network tab, and see how exactly your POST request looks (headers and all) and try to compare that with what postman requests.

Also, there's no middleName in the form. Probably not an issue, but I thought I'd still point it out.


Post a Comment for "Form Data Submit Working In Postman Not From Browser"