2

When defining HTTP Request, there's a checkbox for each parameter: Include Equals

This checkbox can't be unchecked even when choosing different method or parameter.

I don't see any reference in HTTP Request for using it.

Why is this checkbox shown? Is there any usage for it?

Also it seems that Content-Type value per parameter is ignored,in GET it isn't sent:

GET http://www.google.com/?token=0Bfdsa

GET data:

In POST it send the regular www-form-urlencoded:

Content-Type: application/x-www-form-urlencoded; charset=UTF-8
halfer
  • 19,824
  • 17
  • 99
  • 186
Ori Marko
  • 56,308
  • 23
  • 131
  • 233

2 Answers2

3

I've also stumbled upon what does it mean, and I think I've found it. It gives you the option to include = (equals) sign or not for parameters with no value: foo= vs. foo. If the parameter has a value you cannot uncheck "Include Equals?":

| Name: | Value | Include Equals? |
|-------|-------|:---------------:|
| foo   |       |       [x]       |
| bar   |       |       [ ]       |
| baz   | qux   |       [x]       |

The above configuration generates the following url-encoded form:

foo=&bar&baz=qux

The "Content-Type" appears used with the "Use multipart/form-data" option checked – every parameter is sent as a separate part and its own Content-Type:

[x] Use multipart/form-data

| Name: | Value | Content-Type |
|-------|-------|--------------|
| foo   |       | text/x-foo   |
| bar   |       | text/x-bar   |
| baz   | qux   | text/x-baz   |

The generated request looks like:

Content-Type: multipart/form-data; boundary=zIVpNBG_m1irxcTtk7ByTwBgDHbsjB1UjTdRTS

--zIVpNBG_m1irxcTtk7ByTwBgDHbsjB1UjTdRTS
Content-Disposition: form-data; name="foo"
Content-Type: text/x-foo; charset=US-ASCII
Content-Transfer-Encoding: 8bit


--zIVpNBG_m1irxcTtk7ByTwBgDHbsjB1UjTdRTS
Content-Disposition: form-data; name="bar"
Content-Type: text/x-bar; charset=US-ASCII
Content-Transfer-Encoding: 8bit


--zIVpNBG_m1irxcTtk7ByTwBgDHbsjB1UjTdRTS
Content-Disposition: form-data; name="baz"
Content-Type: text/x-baz; charset=US-ASCII
Content-Transfer-Encoding: 8bit

qux
--zIVpNBG_m1irxcTtk7ByTwBgDHbsjB1UjTdRTS--
1

Here it worked for me,

I unchecked 'use multipart/form-data' and from header pass 'Content-Type application/x-www-form-urlencoded'

enter image description here

enter image description here

Prasad Lele
  • 354
  • 2
  • 9