Skip to main content
Question

C# POST request paramaters

  • February 14, 2017
  • 1 reply
  • 6 views

Forum|alt.badge.img

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" +

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img
  • Author
  • February 14, 2017
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,"