title: Node.js request module multiple parameters with same name
body: <p>I am trying to send a http request from my node app. The request has multiple parameters with same name. I am having trouble on the receiving end.</p>
  
  <p>The parameters are not coming in the desired format.</p>
  
  <p>Request: </p>
  
  <pre><code>city[]=1
  city[]=2
  </code></pre>
  
  <p>Here's what I see on server when I send a normal fetch request from front end.</p>
  
  <pre><code>city: [1, 2]
  </code></pre>
  
  <p>Here's what I am seeing on the server side when I use another endpoint to make a request to the same endpoint as above using node's request module.</p>
  
  <pre><code>city[][0]: 1
  city[][1]: 2
  </code></pre>
  
  <p>Here's the HAR object I am using to make the request from the server.</p>
  
  <pre><code>{
    "method": "POST",
    "queryString": [],
    "headers": [
      {
        "name": "content-type",
        "value": "application/x-www-form-urlencoded"
      }
    ],
    "url": "http://localhost:3001/api/v2/roles/test",
    "postData": {
      "mimeType": "application/x-www-form-urlencoded",
      "params": [
        {
          "name": "city[]",
          "value": "1"
        },
        {
          "name": "city[]",
          "value": "2"
        }
      ]
    }
  }
  </code></pre>