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

Unify line endings in Request Body #4179

Open
Geolim4 opened this issue Feb 13, 2018 · 6 comments
Open

Unify line endings in Request Body #4179

Geolim4 opened this issue Feb 13, 2018 · 6 comments
Assignees
Labels
bug product/runtime request-body-configuration All issues that would be addressed with configurable native bodies

Comments

@Geolim4
Copy link

Geolim4 commented Feb 13, 2018

App Details:

Postman for Windows
Version 5.5.2
win32 10.0.16299 / x64

Issue Report:

When sending a request postman is sometimes failing to sent the data.
I send the data as a x-www-form-encoded with key/value and to get it working I had to switch from bulk edit to kv edit multiple times before I can receive the data on the webserver side.

I noticed this issue since I migrated to Postman for Windows, I did not have this issue with Chrome app tho.

This issue is getting very annoying :(

@sdnts
Copy link

sdnts commented Feb 19, 2018

Hi @Geolim4, this looks super weird. Can you open up the Postman Console (Ctrl+Alt+C), and resend your request? You should see the request in the Console. Can you check if the request body is in here?

@Geolim4
Copy link
Author

Geolim4 commented Feb 19, 2018

Okay, after looking the console I found out the issue.

Postman send Windows line ending (\r\n) instead of Unix line ending (\n), therefore the web server is unable to natively parse correctly the body content :(

When I manipulated k/v in bulk edit mode Postman reformatted the line ending to Unix one...

In the end, i'm not sure if this bug is really Postman-related or php7-related...

@Geolim4
Copy link
Author

Geolim4 commented May 17, 2018

@madebysid What's are your thoughts about this ?

@aronnebrivio
Copy link

aronnebrivio commented Jun 27, 2018

I think I'm having the same problem. Calling the endpoint via Paw works fine, but not with Postman.
@Geolim4 did you solved this?

@Geolim4
Copy link
Author

Geolim4 commented Jun 29, 2018

@aroblu94 Yes by forcing line-ending on the server side :)
This is ugly but it allows me to develop quietly.

@kamalaknn
Copy link
Member

@Geolim4 We're glad that you could make it work.

Howerver, Postman as a client should be handling this type of requests. I'm reopening this to track a fix for this in Postman.

@kamalaknn kamalaknn reopened this Jul 4, 2018
@kamalaknn kamalaknn changed the title Serious problem with PUT request (data sent) Unify line endings in Request Body Jul 4, 2018
@saswatds saswatds removed the runtime label May 13, 2019
@saswatds saswatds assigned saswatds and unassigned numaanashraf May 13, 2019
@shamasis shamasis added the request-body-configuration All issues that would be addressed with configurable native bodies label Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug product/runtime request-body-configuration All issues that would be addressed with configurable native bodies
Projects
None yet
Development

No branches or pull requests