# DataSet with POST request: How?

**URL:** https://community.xibo.org.uk/t/dataset-with-post-request-how/24410
**Category:** CMS Features and Functionality
**Created:** [February 7, 2021, 5:51pm UTC](https://community.xibo.org.uk/t/dataset-with-post-request-how/24410 "2021-02-07T17:51:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cschneider](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/c/dec6dc/32.png) [@cschneider](https://community.xibo.org.uk/u/cschneider)
#### Post date: [February 7, 2021, 5:51pm UTC](https://community.xibo.org.uk/t/dataset-with-post-request-how/24410/1 "2021-02-07T17:51:08Z")

</div>

To be completed by the original poster:

# CMS Version

2.3.8

# Player Type

Linux

# Player Version

1.8R6

# Issue

I am trying to use a POST request to obtain JSON-formatted data from a server. However, my request needs

1. ONE parameter which is transmitted via the URL (telling the server that I’d like to have data in JSON format, i. e. the URL is [http://www.myserver.net/file.php?format=json](http://www.myserver.net/file.php?format=json))
2. A large block of data which is transmitted via POST and also, like the return data, formatted as JSON.

In XIBO, I tried inserting the URL as stated in 1), choosing POST as method and inserting the whole JSON string as parameters without any URL encoding (as this is mostly needed for GET?). However, I get an error by the server which can’t handle this request. Is it possible to simply add the POST data to the parameters field? Or do I have to write a .php file doing the whole request and returning the JSON, which I then add to localhost’s apache and call it by XIBO?

Thank you for your help for a newbie 😉  
Best  
Christian

---

<div class="post-metadata">

### Author: ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)
#### Post date: [May 9, 2021, 11:51pm UTC](https://community.xibo.org.uk/t/dataset-with-post-request-how/24410/2 "2021-05-09T23:51:11Z")

</div>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
