Hallo Masters,
I’ve a Problem:
I want to Post a File, a username and a password over HTTP to an external Partner.
I tried to make a multipart mime message an give that to mimestream in the http service. But that doesnt work
the html file that works:
Untitled Documentproduces:
-----------------------------7d6783b2088e
Content-Disposition: form-data; name=“swpUsername”
test
-----------------------------7d6783b2088e
Content-Disposition: form-data; name=“swpPassword”
test
-----------------------------7d6783b2088e
Content-Disposition: form-data; name=“File”; filename=“d:\xx”
Content-Type: text/plain
METER_READING
001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;
001_000000009200960208_000001219;01/22/1993;172.09;2;00:15;
001_000000009200960208_000001219;01/22/1993;118.21;2;00:30;
001_000000009200960208_000001219;01/22/1993;177.64;2;00:45;
001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;
001_000000009200960208_000001219;01/22/1993;172.09;2;00:15;
001_000000009200960208_000001219;01/22/1993;118.21;2;00:30;
001_000000009200960208_000001219;01/22/1993;177.64;2;00:45;
001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;
-----------------------------7d6783b2088e
Content-Disposition: form-data; name=“submit”
Submit Query
-----------------------------7d6783b2088e–
The Service produces that:
Message-ID: 29355037.1154511314618.JavaMail.nets6h@seai002
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=“----=_Part_22_27804389.1154511314618”
------=_Part_22_27804389.1154511314618
content-type: text/plain
content-transfer-encoding: 8bit
swpUsername=test
------=_Part_22_27804389.1154511314618
content-type: text/plain
content-transfer-encoding: 8bit
swpPassword=test
------=_Part_22_27804389.1154511314618
content-type: text/plain
Content-Transfer-Encoding: 7bit
METER_READING
001_000000009200960208_000001219;01/22/1993;178.05;2;00:00;
001_000000009200960208_000001219;01/22/1993;172.09;2;00:15;
001_000000009200960208_000001219;01/22/1993;118.21;2;00:30;
001_000000009200960208_000001219;01/22/1993;177.64;2;00:45;
001_000000009200960208_000001219;01/22/1993;178.05;2;01:00;
001_000000009200960208_000001219;01/22/1993;172.09;2;01:15;
001_000000009200960208_000001219;01/22/1993;118.21;2;01:30;
001_000000009200960208_000001219;01/22/1993;177.64;2;01:45;
001_000000009200960208_000001219;01/22/1993;178.05;2;02:00;
------=_Part_22_27804389.1154511314618–
I must post like the HTML Form Post
has anyone an idea !?!?
Please HELP !!