I created a really basic "web service" of sorts that uses the magic of PHP to fetch and present the number of unread emails in my Gmail account (its located at http://markweinmann.com/gmail.php)
When i hit the page manually, the source of the page is "367" (or how ever many unread emails i have), but when i use the .NETMF Toolbox with HTTP Client, the response body i get back is "\r\n\r\n3\r\n376\r\n0\r\n\r\n".
here is the code i'm using:
// Create a new web session HTTP_Client webSession = new HTTP_Client("markweinmann.com"); // Request source code HTTP_Client.HTTP_Response response = webSession.Get("/gmail.php"); // Retrieve page source string source = response.ResponseBody.ToString(); // Debug Debug.Print(source);
Any ideas why the response is different between browser and code?
Mark