HTTP Server Input

Hello

I’m trying to use the HTTP Server Input but am not having much luck. It’s very hard to find the correct or even any information for it. All i’m wanting to do is post a few fields and save the results as variables in the workflow. I was looking at the below:

http://help.objectiflune.com/en/planetpress-workflow-user-guide/2018.1/Workflow/Interface/HTTP_Server_Input_User_Options.html#PHP%20Arra

But this is the link for a plugin. I have no idea where you are meant to get this from (after a lot of searching). And it just says what the incoming HTML should be but when I post data in this way I don’t get the same results. How is the data meant to be posted?

This is the current response I am getting:
‘<’?xml version=“1.0” encoding=“windows-1252”‘?>’
‘<‘request type=“POST”’>’
‘<‘paths count=“0”’/>’
‘<‘values count=“0”’/>’
‘<‘files count=“0”’/>’
'<'header>
‘<‘ipaddress>192.168.1.18’<’/ipaddress>
‘<‘reqheader>NCR’<’/reqheader>
‘<‘user-agent>PostmanRuntime/7.3.0’<’/user-agent>
‘<‘referer’/>’
‘<‘COTG>0’<’/COTG>
‘<’![CDATA[
cache-control= no-cache
Postman-Token= 94cd6c6a-2299-4eb8-ae4b-dbb571b6a4ab
Content-Type= text/plain
User-Agent= PostmanRuntime/7.3.0
Accept= /
Host= 192.168.1.107:8080
accept-encoding= gzip, deflate
content-length= 52
Connection= keep-alive
URL= POST /NCR HTTP/1.1
Parameters= & l t ; input type= & q u o t ; text & q u o t ; name= & q u o t ; name & q u o t ; value= & q u o t ; Peter Parker & q u o t ; & g t;
]]>
‘<‘cookies’/>’
‘<’/header>
‘<’/request>

The file you receive back is the exact file that was given to the HTTP server Input (provided that you haven’t modified it in your process).

Have you tried the following format for your post:

http://server ip or name:8080/HTTP Server Input Action name?field1=value1&field2=value2&field3=value3

If you do this, your returned file will look something like this:

<?xml version=“1.0” encoding=“windows-1252”’?>
<request type=“POST”’>
<paths count=“0”’/>
<values count=“3”>
<field1>value1</field1>
<field2>value2</field2>
<field3>value3</field3>
</values>
<files count=“0”/>
<header>
<ipaddress>192.168.1.18</ipaddress>
<reqheader>NCR</reqheader>
<user-agent>PostmanRuntime/7.3.0</user-agent>
<referer’/>
<COTG>0</COTG>
...
...
...
</request>

Hope that help.

The following format where to put ?
i also have an XML code , simple one, what do i need to add so i ill be able to receive and send?

<?xml version="1.0" encoding="UTF-8"?>
<xml>
	<INVOICE>
		<TOTAL_PAGES>1</TOTAL_PAGES>
			<DateN>17/05/2020</DateN>
			<Name>Gilad</Name>
			<TZ>123456455</TZ>
			<Table>
				<Line>
					<NameN>SAMPLE 1</NameN>
					<NameSITE>Dan</NameSITE>
					<NumberH>456457567</NumberH>
				</Line>
				<Line>
					<NameN>SAMPLE 2</NameN>
					<NameSITE>Dana</NameSITE>
					<NumberH>435345767</NumberH>
				</Line>
				<Line>
					<NameN>SAMPLE 3</NameN>
					<NameSITE>Ganna</NameSITE>
					<NumberH>6877546</NumberH>
				</Line>
			</Table>
	</INVOICE>
</xml>

what i need to write in HTTP actions field in HTTP server input ?