Closed rzkrn20 closed 2 years ago
I don't understand how this would work in anything "1 and etc" isn't a valid URL.
Without knowing what the url expects I don't know what you need to change. There is nothing wrong with the code itself (other than the URL)
I'm sorry, i can't write the url for some reasons. it's my fault i didn't write it clear, but it's actually a valid url
Without knowing the exact requirements of the "API" you are accessing it's impossible to know what aspect of this is different. It's not the goal of Unirest to behave exactly like Postman (or x) as all things may be "helpful" in different ways. But in this case Unirest is going to produce a properly segmented multipart/form-data request. You would have to ask the API owner what the requirements are
I'm trying to submit a form using post request, i try this on postman, using unirest mashape & okhttp, and it works. But, not in kong unirest, the response i got is the html of the web itself. When i use postman/mashape/okhttp, I got the same response when i delete the submit field.
Is there something wrong with my code?
Expected behavior Get a success response