HTTP Post Request Problem

25 Jun 2012

Hi I'm trying to use the mbed to checkin to foursquare, the following post request works perfectly fine when I run it from my computer but doesn't work on the mbed. can you tell me what's wrong here?

HTTPMap map;
        HTTPText text(str, 512);
        map["oauth_token"] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
        map["venueId"] = "4ed3dbdfb8f7971d6eab4708";
        HTTPResult r = foursquare.post("https://api.foursquare.com/v2/checkins/add", map, &text);
        
        pc.printf("Resoponse is %s",str);

Thanks

03 Jul 2012

try again !