Netduino home hardware projects downloads community

Jump to content

The Netduino forums have been replaced by new forums at This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

TCP/IP stack issue?

  • Please log in to reply
No replies to this topic

#1 Wernfried


    Advanced Member

  • Members
  • PipPipPip
  • 33 posts

Posted 27 January 2015 - 02:19 PM

I use the embeddedwebserver from


There is some simple code

           // Get request
            int bytesReceived = pRequestSocket.Available;

            // Get read buffer
            byte[] readBuffer = new byte[_maxBufferedRequestLength];
            int readBufferLength = pRequestSocket.Receive(readBuffer, readBuffer.Length, SocketFlags.None);

I assume, hat bytesReceived and readBufferLength should be the same. And this is the case for all GET requests.


If I execute a Ajax POST request, this is also the case if I use Firefox or Chrome, but not for IE10, IE11 and IE for Windows Mobile. For the later ones, readBufferLength includes only the Http-Header, not the data itself, while bytesReceived is correct for the whole request. Executing a second Receive call reads the missing data.


Is there a know reason, why POST requests from IE behave like this? With Fiddler I coudn't see any differences in the requests (except the header)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.