cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP Payload contains invalid characters

michael_buchli
Participant
0 Kudos

Hi all,

we have a idoc - 2 - http scenario. the idoc xml will be directly routet through to the http receiver as simple payload. The http receiver told us after the successful processing, that the received payload was invalid.

-

-


here is the payload example:

Header :

'HOST' = '10.29.100.74:23005'

'USER-AGENT' = 'Java/1.4.2_09'

'CONTENT-TYPE' = 'application/octet-stream'

'CONTENT-LENGTH' = '3286'

'CACHE-CONTROL' = 'no-cache'

'PRAGMA' = 'no-cache'

'ACCEPT' = 'text/html, image/gif, image/jpeg, *; q=.2, /; q=.2'

'CONNECTION' = 'keep-alive'

Content :

Content-Length: 3286

Content-Type: application/octet-stream

¼Ý t ¤ ...

-

-


The marked character were added somewhere in the xi system. Any ideas where the problem could be?

Thanks in advance

Michael

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

The characters before the xml declaration are unicode identifiers which are part of any unicode file.

It should not lead to errors, but in this case the content-type should be application/xml

Regards

Stefan

Answers (1)

Answers (1)

michael_buchli
Participant
0 Kudos

Sorry, the marking of the characters did not work. I mean the charcters before the xml declaration <?xml ...