I want to send two different lines of XML to a socket as follows:
<GetServerTime UpTimeAtRequest="1919"/>
<Subscribe FrontId="priceFeed" URI="ffo:/price/productCode=VP-4-6-"/>
I’m using Hercules to test this, but it won’t let me send it in that format. How should I delimit or format the XML above so I can send it directly to the socket with Hercules after connecting to the appropriate ip address and port?
I would be happy to send this using a WebClient or something in C# also.
Thanks.
I’ve no idea what Hercules is, but sending arbitrary data over a client is easy: