Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional WebKitFormBoundary in JSON requests #5467

Closed
raynaldgirard opened this issue Nov 1, 2018 · 10 comments
Closed

Additional WebKitFormBoundary in JSON requests #5467

raynaldgirard opened this issue Nov 1, 2018 · 10 comments
Assignees

Comments

@raynaldgirard
Copy link

raynaldgirard commented Nov 1, 2018

I am not able to do a simple POST with postman while it works very well with curl.

Here is my curl that works well:

curl -X POST -H "Content-Type: application / json" -d '{"value": "hi"}' https: // localhost: 44399 / api / values -k

and with postman it gives:

POST / api / HTTP / 1.1 values
Host: localhost
Content-Type: application / json
{"Value": "hello"} ------ WebKitFormBoundary7MA4YWxkTrZu0gW--

and I receive as an error:

{"": ["Unexpected character encountered while parsing value: {. Path '', line 1, position 1."]}

what is "------ WebKitFormBoundary7MA4YWxkTrZu0gW--"?

could anyone tell me why this simple POST does not work please

thank you so much
This is postman version 6.4.4.

image

@numaanashraf numaanashraf changed the title unwanted ------WebKitFormBoundary7MA4YWxkTrZu0gW-- Additional WebKitFormBoundary in JSON requests Nov 2, 2018
@harryi3t
Copy link

@raynaldgirard Could you also share the screenshot of the postman console? Is it where you saw the WebKitFormBoundary7MA4YWxkTrZu0gW--?
Also, 6.5.2 is out. Please update the App and try this again.

@raynaldgirard
Copy link
Author

image

Same thing with 6.5.2 version !
Thanks

@harryi3t
Copy link

@raynaldgirard I didn't realize that the output was from a generated snippet. But that should not affect in any way the request that is actually being sent.
You can open the "Postman Console" to see the actual request being sent out.

Also, this looks like an issue with the local server that is parsing the body. To confirm this you can try sending the same body to a different endpoint like https://postman-echo.com/post and see if that returns the body. Can you try this and let us know if that works?

@raynaldgirard
Copy link
Author

@harryi3t thanks for your reply. Again, it's working with curl but not with postman
image

@raynaldgirard
Copy link
Author

image

@raynaldgirard
Copy link
Author

for your echo service, it seem not able to use my Windows identity because I have error 407 on the proxy
image

@ushnr
Copy link

ushnr commented Nov 26, 2018

Same happens to me as well. One thing I've noticed is, this only happens with an https endpoint. For testing purposes, same service exposes another http endpoint and same request works fine with that. When I switched to https, Postman seems to be adding an unexpected "------WebKitFormBoundary..." line at the end of JSON body.

@ushnr
Copy link

ushnr commented Nov 26, 2018

Same happens to me as well. One thing I've noticed is, this only happens with an https endpoint. For testing purposes, same service exposes another http endpoint and same request works fine with that. When I switched to https, Postman seems to be adding an unexpected "------WebKitFormBoundary..." line at the end of JSON body.

I have to correct one thing; it seems same line is also added to http request, too. But somehow http interface ignores that line while https responds back with 400.

@harryi3t
Copy link

@raynaldgirard Looks like you have an authenticated proxy in between which we do not support as of now.
There's an open feature request here #3566
Please upvote/subscribe to this issue for any future updates.

@mearns
Copy link

mearns commented Feb 28, 2019

I'm not having any issues making requests, but I do see the same thing in the "HTTP" code snippet:

POST /xxx/yyy/ HTTP/1.1
Host: dev01.example.net
Content-Type: application/json
cache-control: no-cache
Postman-Token: ********-76c8-48c1-a262-************
{
	"streams": [
		{
			"streamName": "test",
			"datapoints": [
				{
					"timestamp": "2020-01-08T00:00:00Z",
					"value": 50
				}
			]
		}
	]
}------WebKitFormBoundary7MA4YWxkTrZu0gW--

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants