cancel
Showing results for 
Search instead for 
Did you mean: 

Sent data as an HTML form using HTTP with Prolog

Former Member
0 Kudos

Hello,

I am trying to sent data to a marketplaces via HTTP Post like it is described in the online documentation ( http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm ) but it doesn't work.

I am trying to send 2 Post variables. An account ID and the content (an IDoc)

I made the following entry in the prolog:

id=abc&content=

I wrote a short php-Script to check weather the variables are sent correctly..

[code]<?php

$id = $_POST['id'];

$content = $_POST['content'];

$filename = "Filename ".$id.".xml";

/* Open a new File */

$fp = fopen($filename,"w");

fwrite($fp,$content);

/* Close file */

fclose($fp);

?>[/code]

This script just creates a new file with the id as the filename and the content as the content of the file.

When I run the test, the script receives no variables...

Is there something wrong with the prolog?

Yours

Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thomas,

did you try <b>&</b>id=abc&content= ?

Just to stick to the documentation....

Did you play with a <i>?</i> - may also help.

Finally - did you try with a manually entered post (e.g. via telnet) whether your php is correct. But I assume you know what you do....

Helge

Former Member
0 Kudos

I tried it with and without an leading & but it doesn't work.

The script is correct. I tested it with a normal html form.

Thomas