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
Convert line endings on posted text #190
Comments
Wouldn't this be a server side issue? I am not sure if I can change it on the fly but let me see if the editor has some options for line-endings. |
I would say its a server side issue, but I have no control over the server I'm trying to post to. It's a very large bank. I'm testing OFX Direct Connect. |
Hmm. This sublime text plugin seems to be able to do this: https://github.com/SublimeText/LineEndings. Can you try it out and see if it works? |
I can convert line ending fine in a number of applications, but when I paste into chrome for OSX and submit its changing all line endings to \n. It would nice if there were an option to say "force to windows line endings (\r\n)", then on submit it would do a regex replace of the line endings with something like raw_data.replace(/\n/g, "\r\n") |
Would have to check if that works. Postman sends the request using XMLHttpRequest so if the conversion is happening there then I don't think I would be able to fix it. Ideally it should just send whatever is there in the raw body. |
I've forked the repo. Can you tell me where exactly the request is being sent. I can modify it and see if it works. Thanks. |
Oh great. The code can be found here: https://github.com/a85/POSTMan-Chrome-Extension/blob/dev/chrome/js/modules/request.js#L1566. |
I added these two lines and it solved my problems. https://github.com/djedi/POSTMan-Chrome-Extension/compare/line-endings I'll see if I can figure out the code enough to add it as an option when submitting. Thanks for your help! |
Awesome. :) |
I don't think this is working in the latest POSTMan package. I've removed and reinstalled the latest browser app as well as the Packaged App as of 12/5/2013. When using the Packaged App, I have verified that the "Force WIndows line endings?" setting is set to true, but the Carriage Return 0x0d is still missing. Here is a snippet from the wireshark hex dump. There should be a '0d 0a' after 'index', but there is only a '0a'
The HexDump from Fiddler shows the 0d0a:
|
I'm using OSX and I'm trying to post some text using postman to test an OFX server. Problem is the server expects line endings of \r\n (see http://www.ofxhome.com/ofxforum/viewtopic.php?id=5). I can't seem to figure out how to make this happen.
The text was updated successfully, but these errors were encountered: