Question

C# POST request paramaters

  • 14 February 2017
  • 1 reply
  • 1 view

Badge

Example: http://playground.fmeserver.com/csharp-request/

Shows String body starting with the words "PublishedParameters" is that required?

The reason I ask is that there is another download example with an HTML form that takes in simple value pair inputs with out the "PublishedParameters" label or title of the json.

String body = "{\\n" + " \\"publishedParameters\\" : [\\n" + " {\\n" + " \\"name\\" : \\"MAXY\\",\\n" + " \\"value\\" : \\"42\\"\\n" + " },\\n" + " {\\n" +

 


1 reply

Badge
To rephrase; why do we have to have name and value and not just something like this:

 

string json = "{\\"publishedParameters\\":[{" + "\\"MAXY\\" : 42," + "\\"user_Id\\" : 1249," + "\\"session_key\\" : \\"dvnoewcdw\\"," + "\\"app_id\\" : 1,"

 

 

 

Reply