Skip to Content
0
Apr 05, 2013 at 02:16 PM

B1if HTTP Call - POST method

515 Views

Hi All,

I try to call url using POST as a method. Call HTTP atom configuration is in payload:

<call xmlns="">

<connect>

<!--the connect section is optional - you can also define a reference to the sld-->

<destProtocol>http</destProtocol>

<destHost>URL</destHost>

<destPort>80</destPort>

<destPath>/</destPath>

<query></query>

<proxyHost></proxyHost>

<proxyPort></proxyPort>

<method>POST</method>

<authentification></authentification>

<user></user>

<password></password>

<user2query></user2query>

<password2query></password2query>

<sslTruststorePath></sslTruststorePath>

<sslTruststorePassword></sslTruststorePassword>

</connect>

<pltype>XML</pltype>

<payload>

<HTTPsTest>

Request test message.

</HTTPsTest>

</payload>

<htta>

<par id="httpheader.???" value=""><!--optional - you can specify here your own http header definitions - multiple elements allowed--></par>

<par id="htta.returnpltypeforce" value=""><!--optional--></par>

<par id="htta.returnpltypedefault" value=""><!--optional--></par>

</htta>

</call>

Connection works but there is no POST message received by a php server.When I switch method to GET then all parameters are received by the php server. Does anyone know what could be the reason that the message isn't received by the php server? The code that reads POST message is very simple:

$zrzut = var_export($_POST, true);

$fd = fopen("0_tele-post.txt", "a");

fwrite($fd, $zrzut."\r\n");

fclose($fd);

This code write POST into a file. But the file doesn't have any values. If I change that code for GET method and send a message using GET than parameters are save into a file.

Is it possible that php code should be different? Maybe this the reason that no values are received?

Kind Regards,

Szymon Lipnicki