3.5.4.1.1 Establishing POST Session without Proxy

The client MUST construct the Polling-POST-Request-URI as the Polling-POST-Request-Relative-URI (see section 2.2.4.1.1).

The client MUST construct a Polling-POST-Request as specified in section 2.2.4.1 with required headers.

The client MUST construct the Polling-Virtual-Connection-Message as specified in section 2.2.4.1.3.1. This message is embedded within the Polling-Request-Entity-Body

The client MUST construct the Polling-Virtual-Connection-Message with the ServerHost as Relay-Server-Name and VirtualConnectionGUID as Virtual-Connection-GUID.

If the PostSessionState is ‘Probing’, the Sequence-Number and Checksum MUST both be set to 0. The Polling-Content-Length header MUST contain the length of the Polling-Virtual-Connection-Message.

If the PostSessionState is ‘Probed’, the Sequence-Number is set to 0, and the Checksum MUST be calculated over the length of the application data that is to be sent, as specified in section 2.2.4.1.3.1.3.

The Polling-Content-Length header MUST contain the length of the Polling-Request-Entity-Body.

The client MUST establish a TCP connection to the server using ServerHost and ServerPort and send the Polling-POST-Request.