Check that inbound port 80 is allowed, outbound port 80 is always open, but inbound is nearly always closed unless you have explicitly opened it.
Where is the computer located that you are trying to connect to?
If you want a simple to use HTTP client for your netduino i would recommend the one in Stefan's netmf toolbox. Then you can use simple code like this:
using System; using System.IO.Ports; using System.Threading; using Microsoft.SPOT; using Microsoft.SPOT.Hardware; using Microsoft.SPOT.Net.NetworkInformation; using SecretLabs.NETMF.Hardware.NetduinoPlus; using Toolbox.NETMF.NET; namespace HTTPClient { public class Program { var webClient = new HttpClient(new IntegratedSocket(http://xxx, 80)); var response = webClient.Get("/Pool/add?a=1&b=4"); if(response.ResponseCode != 200) { Debug.Print("Invalid Response"); } Debug.Print(response.ResponseBody); Thread.Sleep(Timeout.Infinite); } }
Nak.
I still have the same issue::
using System;
using System.IO.Ports;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.Net.NetworkInformation;
using SecretLabs.NETMF.Hardware.NetduinoPlus;
using Toolbox.NETMF.NET;
namespace HTTPClient {
public class Readservice {
public static void Main()
{
var webClient = new HttpClient(new IntegratedSocket("http://xxx, 80"));
it cant find HttpClient!
Error 1 The type or namespace name 'HttpClient' could not be found (are you missing a using directive or an assembly reference?)
Error 2 The type or namespace name 'IntegratedSocket' could not be found (are you missing a using directive or an assembly reference?) E:\VS2010\Netduino\georgiposted\Readserver.cs
in the Toolbox.NETMF.NET there is a only a Http_Client...