Content Type xml Postman

To do this, open Postman and create a new request by selecting New->Request from the top left: Under Headers, select Key = Content-Type: For Value, select application/json: THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP. I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM. IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND. Postman has become a popular ad hoc tool for use when developing new web services. However, it is often overlooked that Postman can also be used to perform and automate testing of web services. The following tutorial will detail using Postman to develop a test of a XML web service Use the raw tab, and the type drop-down list to indicate the format of your data (Text, JavaScript, JSON, HTML, or XML) and Postman will enable syntax-highlighting as well as appending the relevant headers to your request. You can set a content type header manually if you need to override the one Postman sends automatically Response body: Is equal to a string. Response headers: Content-Type header check. Response time is less than 200ms. Status code: Successful POST request. Status code: Code name has string. Response body: Convert XML body to a JSON Object. Use Tiny Validator for JSON data. No variables in this collection Create Booking API accepts JSON and XML payloads. We will create a booking by passing XML payload in Postman. We can see header details and example request body in API documentation:-Note :- We need to pass a header named Content-Type as text/xml. It is not supporting application/xml

Posting messages to SAP Ariba Cloud Integration Gateway

How to Set Content Type to Application/JSON in Postman

  1. SOAP/XML: Body: raw/XML Content-type: text/xml. I have updated to 7.7.3. When I create a new request, and select raw/XML the content-type defaults to application/xml. I still have to manually update the content-type in the Headers tab for my request to work. Postman has not converted my existing requests. They have remained as set yesterday to.
  2. Sometimes invalid XML can make the xml2Json function return null. omidsarei33 6 February 2020 15:34 #9. the issue that you have is because when you use xml2json it will encoding it inside it self and it will be double encoded. therefore you need to actually decode your file. const convertToJson = (input)=> {. const json = parser.toJson (input)
  3. By default, the Content-Type is set based on the Response Format you set for the Exposed REST API. If you want to override it, you need to add an On Before Request and modify the Content-Type to what you want it to be (by iterating over the Headers List). 0
  4. ASP.NET Core 3.1: Accept and Content-Type | Adding XML Support to a Web API By default, when we create a Web API in ASP.NET Core, it is configured to use JSON. The idea is that different clients of different technologies can communicate with our application, sending and receiving information, using the JSON format
  5. When you select an XML body type, Postman will automatically add a content type header of application/xml, but depending on your service provider, for SOAP requests you may need text/xml. Open the request Headers and click to show the hidden headers. Check with your SOAP service whether you need the application/xml or text/xml header
  6. Once you add XML data as the body, Postman will automatically add a Content-Type header that can be seen under the Headers tab. While REST typically uses JSON and other data formats, SOAP relies on XML
  7. ed the response closely and I found that the value of the header was actually, text/html; charset=utf-8. For my purposes, the charset is unimportant
javascript - Postman: Send XML as body using application/x

Tutorial: Using Postman to Test XML Web Services - Krengel

  1. @a85 - I'm using the dev branch currently.. When I select JSON (application/json) the Content-Type header is still application/xml.. See these related issues: #298 #241 #235 #296. How can I help debug? I have the repo cloned to C:\proj\src\POSTMan-Chrome-Extension with the dev branch checked out. I have this directory as the extension installation point in Chrome (see screenshot)
  2. Content-Type: We need to send request body to server to get a response. Request body can be JSON , xml , file etc. So using Content-Type header in request headers, we mention in which format we are sending data to server. Some values of Content-Type headers are application/json , application/pdf etc
  3. Content-Type The Content-Type representation header is used to indicate the original media type of the resource (prior to any content encoding applied for sending). In responses, a Content-Type header tells the client what the content type of the returned content actually is
  4. Uploading xml file to S3 Bucket via API using postman and Lambda. Now open postman application.Use the API https: Content-Type : application/xml.
  5. Usually, considering that it's a SOAP Service, when you set Body type as XML, Postman automatically adds Content-Type=application/xml in the header. That is the problem. Go to headers from the request section, and uncheck the box in front of Content-Type. Then manually add another entry for Content-type and select text/xml as its value
  6. To post XML data to the server, you need to make an HTTP POST request, include the XML in the body of the request message and set the correct MIME type for the XML. The correct MIME type for XML is application/xml. In this post XML example, the Content-Type: application/xml request header specifies the media type of the resource as XML

Postman is currently one of the most popular tools used in API testing. Copy and paste XML soap request into the editor and select content type as XML (text/xml) HTTP headers | Content-Type. The Content-Type header is used to indicate the media type of the resource. The media type is a string sent along with the file indicating the format of the file. For example, for image file its media type will be like image/png or image/jpg, etc. In response, it tells about the type of returned content, to the client

Change request method to POST, and enter url (combining Host and POST) data from the request part: Then browse to raw section under Body tab, Copy and paste XML soap request into the editor and select content type as XML (text/xml). Now hit send, you will see the output as XML format To post XML using cURL, you need to pass XML data to cURL with the -d command line parameter and specify the data type in the body of the POST request message using the -H Content-Type: application/xml command line parameter HTTP_POST () (and HTTP_GET ()) only use HTTP/1.1. In the example below, a POST request is created and sent using HTTP_FETCH to generate an authentication ticket for accessing the Quickbase API. The Content-type is set to application/xml via the settings.header property. The settings dot variable is used to define the protocol, headers, and. POST /target HTTP 1.0 User-Agent: Identifier Host: host.making.request Content-Type: text/xml Content-Length: length of request in bytes For example, if the circleArea method was available from an XML-RPC server listening at /xmlrpc , the request might look like

Building requests Postman Learning Cente

  1. Follow these eight steps to send XML data in an HTTP POST, receive an XML document from a server, and output the XML that was received. Create an XMLHttpRequest object and make a request for an XML document. var xmlhttp = new XMLHttpRequest (); xmlhttp.open ( POST, books ); Initialize a variable to hold the result of the AJAX request
  2. Here is a list of MIME types, associated by type of documents, ordered by their common extensions. Two primary MIME types are important for the role of default types
  3. Hi there, Please provide an example of how to create a REST API which accepts XML input. The API call is external and limits the input format to XML. I'm not sure how to build the body of the request and receiving ERROR 415: Backend Unsupported Media Type Which as I understand, means the content type and input do not match. Any assistance will be appreciated thanks! Attached an image of the.
  4. Put a breakpoint on the post and ran it in the debugger. In Postman I set the content type to application/json and I typed in: { id: 123, text: test data } When I posted that the breakpoint hits and I can see the data being picked up from the body. When I do it for XML and make the post definition CustomersT class it fails
  5. Furthermore, instead of being specified as a Query String Parameter, the parameters are now being specified in a form object. Also, note that the Content-Type header on line 15 is specified in the content-type object. Finally, note the echoed JSON from the postman-echo.com endpoint
  6. Hi All, I unable to get node object in pipeline when I do rest post call from soapui/postman with Content-Type = application/xml. But I am seeing contentStream {java.lang.String} = 'com.wm.net.HttpInputStream' instead node object. When I do rest post call from soapui/postman with Content-Type = text/xml then I am getting node object and able to process xml data. IS Version: 9.9 Appreciate.

Visualizer - any JSON/CSV/XML as a table - Postman Answer

  1. ERROR #6243: HTTP request to SOAP WebService returned unexpected CONTENT-TYPE response: text/html. However, If I call the same WS using SOAP UI or Postman, the header of response has the content-type text/xml, as expected
  2. mmm.... xmlhttprequests.... no html in there? IE8 and upwards has native xmlhttprequest support. Regards
  3. When the content type is text/xml, the Integration Server will assume that that body of the HTTP POST is an XML message so it will automatically parse the XML and place an XML node object in the pipeline. Therefore, your service should have an input variable called node and you can then call services from WmPublic/pub.xml on that object

Postman Tutorial Part 52 - How To Send Parameterized XML

HTTP/1.1 200 OK Content-Type: application/json Content-Length: 43 {error: no results for name netspitest} If the Content-Type header is changed to application/xml instead, the client is telling the server that the POST payload is XML formatted data A Content-Type header set to text/xml or application/xml if you are sending an XML block, or set to application/json for a JSON request block. A request body with an XML or a JSON block that includes the information for the new resource. The XML and JSON block is defined by an XML schema. The information in the request block depends on what. OK - After reading a little more I see that SOAP 1.2 uses content type application/soap+xml and SOAP 1.1 uses text/xml. I'm thinking that the remote service is not returning application/soap+xml as the contenet type on their SOAP 1.2 service?? Content Type Converter. This extension converts data submitted within requests between various common formats: This is useful for discovering vulnerabilities that can only be found by converting the content type of a request. For example, if an original request submits data using JSON, we can attempt to convert the data to XML, to see if the.

Content-Type; Content-Type indicates the content type of the body of the request. Accept indicates the expected content type of the response. Example of Content Negotiation. Following screen shot shows how you can specify these headers in a request using Postman. The server is expected to respond based on the Accept header Use an HTTP POST request to send single or multiple RPC requests to the REST API. You can use the POST request to do device configuration POST /todos XML to JSON. Issue a POST request on the /todos end point to create a todo using Content-Type application/json but Accept application/xml. POST request means we will send information in the body of the message e.g. POST /todos sends to the todos endpoint; create a todo means that the payload will be valid data to create a todo ite Web API converts request data into CLR object and also serialize CLR object into response data based on Accept and Content-Type headers. Web API includes built-in support for JSON, XML, BSON, and form-urlencoded data. It means it automatically converts request/response data into these formats OOB (out-of the box). Example: Post Action Method

It is mandatory to specify the Content-Type header for API requests that contain HTTP message body data. Those are typically requests using the POST and PUT HTTP methods. For example, you can format an SMS message in either JSON or XML, but you have to fill out the Content-Type header accordingly: json. xml Content-type indicates The MIME type of the request body. This header is important, because SOAP 1.1 and SOAP 1.2 accept very specific content-types. When calling a SOAP 1.1 service, the content-type must be text/xml, while for SOAP 1.2, the content-type is usually application/SOAP+xml. This Logic App requires a content type of application/xml. POST /todos XML to JSON. Issue a POST request on the /todos end point to create a todo using Content-Type application/xml but Accept application/json. POST request means we will send information in the body of the message e.g. POST /todos sends to the todos endpoint; create a todo means that the payload will be valid data to create a todo ite At server side, an incoming request may have an entity attached to it. To determine it's type, server uses the HTTP request header Content-Type. Some common examples of content types are text/plain, application/xml, text/html, application/json, image/gif, and image/jpeg. Content-Type: application/jso This means when you're sending JSON to the server or receiving JSON from the server, you should always declare the Content-Type of the header as application/json as this is the standard that the client and server understand. Conclusion. As stated above, the server (just like the browser) needs to know the type of data sent to it, say, in a POST.

Control request and response content type. Control which content types are allowed in scripted REST API requests and responses. By default, scripted REST APIs support application/json , application/xml, and text/xml. User-defined custom content types (with json or xml subtypes) are also supported This method specifies the main parameters of the request: method - HTTP-method. Usually GET or POST.; URL - the URL to request, a string, can be URL object.; async - if explicitly set to false, then the request is synchronous, we'll cover that a bit later.; user, password - and password for basic HTTP auth (if required).; Please note that open call, contrary to its name. You should note that the payload has the XML format but the emboldened line in REQ1 states that the request type is set as text/plain instead of application/xml: and POST; If the Content-Type. Now the Content-Type switched from text/html to rss+xml ! Content-Type: application/rss+xml; charset=UTF-8. This automatic switching of content-type makes In-App Browsers (IAB) like Facebook and Instagram go berzerk. Instead of the IAB rendering the html page, it loads the XML file for the RSS feed Content-Length: 3759. You have two possibilities now: 1.) Discuss this with the administrator of the receiver system, if they. can change their configuration to accept the currently used content type. 2.) Or set Content-Type header parameter to 'text/xml; charset=utf-8'. as it is described in this document: how to set http header parameters.

Oct 18, 2006 at 06:43 AM. i havent tried this (setting content type) when using create by url . may be try just the create method and then set the remaining part of the url as headers ~request_uri parameter. something like below. call method cl_http_client=>create exporting host = 'www.webservicex.net' service = '80' scheme = '1' proxy_host. After having. smoothed out some initial difficulties regarding ASP this example - beside. some others too - crashes with. The content type text/html; charset=utf-8 of the response message does not. match the content type of the binding (application/soap+xml; charset=utf-8).â€} Remark: actually the german message reads

Lates update of postman client updated all post request

Pass HTTP Header Content-Type with correct value (Check API documentation). Typically for JSON API its application / json and for XML SOAP API its text / xml; If you are using Zappysys REST API Drivers or SSIS Connectors you will see Content Type Dropdown on UI see #4 in above screenshot. Change it to correct setting The type of body, XML, JSON or some other format is defined by the Content-Type header. If a POST request contains JSON data then the Content-Type header will have a value of application/json. Similarly, for a POST request containing XML the Content-Type header value will be application/xml Send XML without cURL. If you do not have access to the cURL functions, then you can check out my guide on sending a POST request without cURL.. Note that you may need to modify the function and change the header value on LINE 17. You may also need to remove the http_build_query function on LINE 11.This will all depend on the service you are sending your XML to

Certain request customizations require setting HTTP headers. Content-Type and Accept headers control input and output format. The Range header controls pagination. The Compression header controls compression. Content-Type and Accept headers. To specify the content types of the request body and output, use the Content-Type and Accept headers The example below demonstrate a Content-Type header value that references a media type with a charset parameter: Content-type: text/html; charset=ISO-8859-4 REST APIs commonly use either the application/json or the application/xml media type in the Content-Type header of an HTTP/1.1 request or response. This anti-pattern is a form of.

Sending a request with XML data - Help - Postma

The Content-Type header is used as specified in [RFC2616]. However, because this document describes messages for the application/atom+xm When the response is sent to the client, notice that the Content-Type header of the response is set to the appropriate value. For example, if the client has requested for application/xml, then the server sends the data in XML format and also sets the Content-Type=application/xml. Role of Media Type Formatter To be able to convert the JSON sent as HTTP Body content into a Java object which we can use in our application we need to use the @RequestBody annotation for the method argument. Notice how the @RequestBody annotation is used to mark the method argument object into which the JSON document will be converted by Spring Framework

Long story short, I tore everything out, eventually I tried to run the trivial file upload example I knew worked; it didn't. That's when I realized that the problem was with my Postman request. I normally don't send any special headers, but in a previous test I had added a Content-Type: application/json header Difference between the Accept and Content-Type HTTP headers. So the Accept header tells the server the MIME-type of the resource the browser is looking for. For example, the server can send plain text, HTML, JSON, etc. OK, that makes sense, but when I look at the Content-Type header and it seems to be doing the same thing. For example, it tells. Your first thought is probably but why? and that's fair. So let me explain. I'm a heavy user of Microsoft Flow and Azure Logic Apps, and both of those offerings have really good build in support for JSON, but not for XML. In fact, you can't even really parse XML into objects you can then reference in either of these

View REST requests in SoapUI editors. SoapUI parses the REST messages for you, and makes it very easy to view and edit the request and response headers as well as the JSON and XML payloads. To view request contents in SoapUI, simply double-click the request in the Navigator panel on the left: The editor toolbar displays the request method (verb. The HTTP2-Settings header field is a connection-specific header field that includes parameters that govern the HTTP/2 connection, provided in anticipation of the server accepting the request to upgrade. Only perform the action if the client supplied entity matches the same entity on the server

Hi Daniel, It seems to be some changes happened on server side which is not accepting request format what you are currently using so If you are usin Accept: application/json, application/xml; q=0.9, */*; q=0.1 In this example, application/json has an implied quality factor of 1.0, so it is preferred over application/xml. If no matches are found, the content negotiator tries to match on the media type of the request body, if any TempConvert. Click here for a complete list of operations.. FahrenheitToCelsius. Test To test the operation using the HTTP POST protocol, click the 'Invoke' button

This is all we need for a Spring REST API and an Angular client using the @ RequestBody annotation. 3. @ResponseBody. The @ResponseBody annotation tells a controller that the object returned is automatically serialized into JSON and passed back into the HttpResponse object. Suppose we have a custom Response object Steps to Build a JSON POST request. Create a URL object: Let's create a URL object.We need a target URI string that accepts the JSON data via HTTP POST method. In this example, I am using httpbin.org service to Post JSON data. httpbin.org is a web service that allows us to test the HTTP request. You can use it to test and inspect your POST request. httpbin.org responds with data about your. The above can also take an object as parameter instead of a string, however sometimes you would like to post something different than XML or JSON. In this case you need to use the StringContent class and provide it with a content-type, below is an example of this Express-Node: Accepting POST with Content-Type: application/xml - accept-xml.js. Skip to content. All gists Back to GitHub Sign in Sign up Sign in Sign up {{ message }} Instantly share code, notes, and snippets. davidkrisch / accept-xml.js. Created Mar 26, 2012. Star 4 Fork As far as I know, there is no way to directly change the content type to json, you can try to use JavaScript to convert to json, for example, use JSON.JSON.parse (str) or JSON.stringify (a) to convert each other. One thing to ensure if you need to make sure this request type should be json, is in the Request headers (Advanced > Request headers.

Exposed API - need to return Content-Type as [text/xml

Post by Upul Godage SOAP 1.1 uses content type text/xml SOAP 1.2 needs content type to be application/soap+xml Upul On Wed, Mar 5, 2008 at 4:17 PM, Thomas Pawlitzk XML. This request logs in to the CommServe associated with the Web Server. POST <webservice>/Login HTTP/1.1 Host: client.mydomain.com Accept: application/xml Content-type: application/xml <DM2ContentIndexing_CheckCredentialReq username=admin password=RkVSNTVXND0= /> This request logs in to a remote CommServe. POST <webservice>/Login HTTP/1. home > topics > php > questions > soap envelope change from content-type: text/xml to text/html Post your question to a community of 468,693 developers. It's quick & easy parsing/deserializing. Dealing with XML in Apex is a pain. The best approach that I've found so far is to use the classes in the Dom namespace, Dom.Document and DOM.XmlNode, in combination with a class structure that mimics the schema of your XML.. Think of it like creating the class structure that you'd need to deserialize the data if it were JSON

ASP.NET Core 3.1: Accept and Content-Type Adding XML ..

Making SOAP requests Postman Learning Cente

And, as our content-type header indicates we are getting data in XML format. Now, those are the two formats that the Web API can supply by default. If we want various types of representations then we need to implement a media type formatter in the Web API One very important thing is that POST XML format to the service should be the same as RequestData. So the post XML request format can be like below: We must have to use namespace for the data contract in POST RESTFul service, which has multiple uses, i.e., reflects the current version of your code. The same namespace should use in XML to Post data

So it is impossible to post xml text this content type? Even for a tiny one? I mean I'll always get this error? Thanks again! Do you want to post some sample code? - Peter Bromberg replied to Gustavo Monteiro on 04-Sep-07 07:36 AM. Maybe somebody can take it and post a workable solution for you Request wrapper to change/ override the content-type to JSON or XML Since, POST request is not allowing XML or JSON content-type and other types will fail when it need to match with our REST service's content type. We need to change the content-type at back-end before request reaching to REST service. Below is the code for Request wrapper class The third line contains the content type, text/xml, which indicates that the payload is XML in plain text format. The payload refers to the essential data being carried to the destination. The payload information could be used by a server or a firewall to validate the incoming message. A SOAP request must use the text/xml as its content type. Although this is a bit old: I ran into the same problem.. seems some attributes such as content-type or date cannot be added as parameter but are added internally. To alter the value of content-type I had to change the serialzer setting (altough I didn`t use it because I added a json in the body that was serialized before!


Postman & SOAP Making SOAP Requests with Postman

Test content type, ignoring charset? - Help - Postma

(C#) SOAP Web Service (HTTP POST) Demonstrates how to call PostXml to call a SOAP web service. Chilkat .NET Downloads. Chilkat .NET Assemblies. The default sent by Chilkat is application/xml, but this web service // expects text/xml. Therefore, change the content-type: http requirement is a bit unique (not traditional xml over http). Here is an excerpt. To upload a file the calling program must first create a programmatic HTTP. URL Connection with a POST request method. This connection should then. attach the file using a multipart/form-data content-type request. property, and then attach a Base 64 encoded.

Selecting JSON (application/json) does not set Content

The Accept header is used by HTTP clients [browsers] to tell the server what content types they'll accept.; The server sends back the response, which will include a Content-Type header telling the client what the content type of the returned content actually is. In case of POST or PUT request, browsers do send data in request, so they actually send content-type as well In this tutorial we will go to some of the practical use-case of handling HTTP methods which can be used in our daily life to increase our productivity and cover the below utilities. httpie: Client-side implementation of the HTTP/1.1 protocol. curl: transfer a URL. wget : The non-interactive network downloader Instead of XML you may provide and accept entities as JSON, a simpler and more concise format. Comparison of XML and JSON representations. Compare an authentication context, to be POSTed to the '/session' resource, as application/xml POST /api/tickets.json; Attachment data for the JSON content uses the RFC 2397 data URL format. As described above, the content-type and base64 encoding hints are optional. Furthermore, a character set can be optionally declared for each attachment and will be automatically converted to UTF-8 for database storage

Use Postman for Custom Connectors

Postman Tutorial Part 7 - Difference Between 'Accept' and

Content-Type Parser. Natively, Fastify only supports 'application/json' and 'text/plain' content types. The default charset is utf-8.If you need to support different content types, you can use the addContentTypeParser API.The default JSON and/or plain text parser can be changed Question and Answers. Question: How the Netscaler monitors the XML service when Citrix-XML-Monitor is used on Netscaler ? Answer: When Citrix-XML monitor is bound to to the service on Netscaler. Netscaler send the below POST request: POST /scripts/wpnbr.dll HTTP/1.1. Host: Content-Length: 239. Content-Type: text/xml

Postman : Required request part &#39;file&#39; is not present | 易学教程

Content-Type - HTTP MD

Calling Orchestrator Runbooks (& retrieving output) via REST. Submitted by Laurie Rhodes on Fri, 02/20/2015 - 01:00. This example uses PowerShell to call an Orchestrator runbook and display the results. To demonstrate the scripting, I have created a simple runbook that will accept a string input. It's titled Input1 If you pass a JavaScript object as the 2nd parameter to the axios.post() function, Axios will automatically serialize the object to JSON for you. Axios will also set the Content-Type header to 'application/json', so web frameworks like Express can automatically parse it home > topics > php > questions > simplexml and load php file (content-type: text/xml) Post your question to a community of 468,708 developers. It's quick & easy

Uploading XML file from Postman to S3 bucket through API

In the POST request above, we set the Content-Type header to application/json. We were able to do this by passing an array into cURL's CURLOPT_HTTPHEADER option on line 10. In my log.php file, I used the following piece of code to print out the received content type XML files can be POSTed to our system where they are added to the submission queue to await processing. You can do this yourself or make use of our java program. On this page, find out more about: Submitting files - an overview Sample transactions Submission limits Submitting files - an overview Uploading files (for deposit or for bulk queries) are submitted using HTTPS POST with the encType. Editor's Note: This article sure is a popular one! The Fetch API is now available in browsers and makes cross-origin requests easier than ever. Check out this Hacks post or the link above to learn more.. XMLHttpRequest is used within many Ajax libraries, but till the release of browsers such as Firefox 3.5 and Safari 4 has only been usable within the framework of the same-origin policy for. POST Requests with Axios. The easiest way to make a POST request with Axios is the axios.post () function. The first parameter to axios.post () is the URL, and the 2nd is the HTTP request body. By default, if the 2nd parameter to axios.post () is an object, Axios serializes the object to JSON using the JSON.stringify () function

POSTMAN returns 415 Unsupported Media Type for SOAP

The success callback function is passed the returned data, which will be an XML root element or a text string depending on the MIME type of the response. It is also passed the text status of the response. As of jQuery 1.5, the success callback function is also passed a jqXHR object (in jQuery 1.4, it was passed the XMLHttpRequest object).. Most implementations will specify a success handler 2.1 Server side code for our AJAX form. If you're running PHP 5.4 or above, you can fire up a server by going into your terminal running the following commands: $ cd path/ to/ jquery- ajax- form && php - S localhost:8111. If you're on Mac, install Mac Ports and then php55 with: $ sudo port install php55 Cause. An incorrect Content-Type (eg.text/xml) or no Content-Type has been defined for the call. Resolution. The correct Content-Type should be indicated in the call

Postman Tutorial Part 54 – Testing SOAP API(WSDL) UsingRESTful web services Messages in Restful web serviceAdministration of Microsoft Sharepoint Online Connectorazure - 404Resource Not Found postman post request for