diepm / vim-rest-console

A REST console for Vim.
658 stars 54 forks source link

Improve support for multiple GET params #24

Closed nathanaelkane closed 8 years ago

nathanaelkane commented 8 years ago

Example usage:

http://httpbin.org/
GET /get
key1=value1
key2=value2
key3=value3

Response without multi GET param support:

{
    "args": {
        "key1": "value1key2=value2key3=value3"
    },
    "headers": {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Host": "httpbin.org",
        "User-Agent": "curl/7.43.0"
    },
    "url": "http://httpbin.org/get?key1=value1key2%3Dvalue2key3%3Dvalue3"
}

Response with multi GET param support:

{
    "args": {
        "key1": "value1",
        "key2": "value2",
        "key3": "value3"
    },
    "headers": {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Host": "httpbin.org",
        "User-Agent": "curl/7.43.0"
    },
    "url": "http://httpbin.org/get?key1=value1&key2=value2&key3=value3"
}

Please note, with my use-case, I have a very long and complicated query string. Therefore I'd rather not have everything on the GET line, e.g. GET /get?key1=value1&key2=value2&key3=value3

diepm commented 8 years ago

Thanks :)