# Testing HTTP POST

There are several ways to test HTTP Post requests, depending on the available tools, expertise and preference of the user. Postman for example could be used if a tool with a graphical user interface is preferred. Another option is to use cURL. cURL is a command line tool and is available for almost every operating system. Curl can be downloaded from <http://curl.haxx.se/dlwiz/?type=bin>.

In the example below the file request.xml contains the optional request body and the response will be written to the file response.xml. To send a request without the optional request body, remove arguments --data-binary @C:\request.xml.

```javascript
curl --data-binary @c:\request.xml -o c:\response.xml -H "Content-type: text/xml;charset=utf-8" 
     "https://customer.ultimo.net/Webservices/Connector.ashx?username=<<username>>&password=<<password>>&action=export&exportName=<<exportconnectorname>>"
```

To import data the action should be changed to import:

```javascript
curl --data-binary @c:\request.xml -o c:\response.xml -H "Content-type: text/xml;charset=utf-8" 
     "https://customer.ultimo.net/Webservices/Connector.ashx?username=<<username>>&password=<<password>>&action=import&importName=<<importconnectorname>>"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.ultimo.net/api-guide/http-post/testing-http-post.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
