I am writing a Coldfire Lite application based on application note AN3518 (HTTP client). My current application does 2 consecutive HTTP GET requests to receive the data I need.
But I want to receive the required data in a different way, using one HTTP POST request.
AN3518 does not contain the HTTP POST request so I wrote this myself. This works fine, but my current problem is that the received data is contained in 3 TCP packets that have to be reassembled into the actual data. I have no idea if Coldfire Lite has this functionality implemented or not. If anyone has experience with this please let me know.
I am also looking for information about TCP packets. What's inside the header? How does the hand shaking work? Any info is greatly appreciated!
Thanks. Actually coldfire lite does reassemble the data in the packages automatically. While I was debugging the program, I stopped the program to see what was in the receive buffer, but I did this when only the first package was received, which made it look like all the rest of the data got lost. My mistake...
If I Google "tcp tutorial", I get over 2 million hits. One of these will perhaps answer your question. BTW It is part of the TCP spec that it must reassemble fragments and deliver them in order. If TCP is supported, it is a given that this is the case.