Skip to content

String escaping in windows and Non-Windows shells #87

@Loicniragire

Description

@Loicniragire

Suppose the following Post is intended:

http://something.com
Content-Type: application/x-www.form-urlencoded
POST /identity/token
grant_type=password
username=Joe
password=hello

Option 1:
Set vrc_split_request_body = 1 in your vimrc - the above request would work but subsequent requests will also be split. Not necessarily a desired effect.

Option 2:
Do not set vrc_split_request_body to 1 in your vimrc but instead issue the following body:
grant_type=password&username=Joe&password=hello
Technically this should work except, on windows at least, the above request body is escaped as follow:
grant_type=password&username=Joe&password=hello

(I traced this escaping effect to ftplugin\rest.vim - function Shellescape(val))

As a temporarily solution, bypassing Shellescape function seems to work for option 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions