PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : HS telegram UDP question



robroos
17.01.05, 14:26
Hi dear Friends,

I am trying to get some kind of XML interface working with HomeServer.

However, it appears that in UDP messages the <> characters are changed into []. But when I specify [] in the text prefix or postfix it still doesnt work.

When I send following message :


Please read < for $ and > for % as the tags are otherwise interpreted wrong by the browser.

"$HSFILE%$OTEMP%8.1$/OTEMP%$/HSFILE%"

then in debug I see :
17.01.2005 12:53:39 (Typ: UDP) (Port: 1500) (Absender-IP: 10.0.0.26)
8.1

If I specify the [HSFILE] etc. in the Text Pre and post it still doesnt work.

When I send a UDP message from HS the <> are not translated and are received correctly in the socketlistener on my PC.

So, I tried to send different characters: *|;:=[]@$%&?<>
They are appearing in the debug log like : *|;:=[]@$%&?[] .

To be clear, when I do not use <> then the interface works without problems. But I would like to have the <> characters included.

Is this a bug or restriction on HomeServer ?

CORRECTION from myself : I made a mistake myself. The < and > are only displayed as [ and ] in the debug site.

It didnt work because I misplaced 1 character in the telegram and was confused by the debug site.

Lesson : Dont shout if you didnt double check.

Regards,

Rob Roos

Michel
17.01.05, 14:44
Try to use the HEX-Value instead.

robroos
17.01.05, 16:09
Michel,

In telegram receive it is not possible to specify Hex.

The message itself is from a program, it does send hex codes

< equals x'3C'
> equals x'3E'

Michel
17.01.05, 16:20
*confused*

In which direction are you trying to send these datagrams? It ist possible to send HEX-Values from the Homeserver. It is actually used in my tool "IP-Alarm" in order to display messages with Carriage Returns.

robroos
17.01.05, 18:04
Michel,

I am sending from a programme (like HSInfoman) to the HomeServer.

However, I think I found the problem.

It seems that I misplaced one tag .

It now works (You must be carefull with the placement of the values. I didnt)

So, all thanks for your help !