M
mwieder
Hi - I am using the .NET sockets class to build a web client.
Normally, to receive, I have the following code:
Byte[] RecvBytes = new Byte[16368];
Int32 bytes;
do
{
bytes = m_sock.Receive(RecvBytes, RecvBytes.Length, 0);
} while (bytes > 0);
However, if the transfer encoding of what is being sent is set to
"Chunked," this code hangs. How do I use the Socket class to receive a
chunked http request?
Normally, to receive, I have the following code:
Byte[] RecvBytes = new Byte[16368];
Int32 bytes;
do
{
bytes = m_sock.Receive(RecvBytes, RecvBytes.Length, 0);
} while (bytes > 0);
However, if the transfer encoding of what is being sent is set to
"Chunked," this code hangs. How do I use the Socket class to receive a
chunked http request?