I'm writing some sample code fragments for a REST API that's developed in PHP and while I can manage to get a "Ruby" example, I haven't been able to find a decent ASP.NET (figures) example that would be equivalent. I was wondering if any ASPer could help out with a nitty-gritty translation of the following PHP which issues a POST request with a JSON string as its payload.The main thing to note is that the POST requires one named parameter "data" which is a JSON string.\[code\] $key='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; // This would be your customer key $map='USA'; $accountid='000'; // this would be your account id // add some zips to an array $zips[]=22201; $zips[]=90210; $zips[]=10001; // We encode an array into JSON $data = http://stackoverflow.com/questions/15556570/array("map" => $map, "zips"=>$zips, "accountid" => $accountid, "custkey" => $key); $data_string = json_encode($data); // IMPORTANT - the API takes only one POST parameter - data $postdata="http://stackoverflow.com/questions/15556570/data=$data_string"; // we use curl here, but Zend has Rest interfaces as well... $ch = curl_init('https://www.example.com//test/'); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST'); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, 1); // make sure we submit a POST! curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); $result = curl_exec($ch); if (curl_errno($ch)) { $result=curl_error($ch); } else { curl_close($ch); } $jsonObj=json_decode($result); if($jsonObj->success){ $coordinates=$jsonObj->coordinates; foreach($coordinates->coordinates as $coord){ //... application logic here ( construct XML for the map ) } }\[/code\]Thanks for the help - I hate posting stuff like this, but maybe it'll help someone else in the future as well!R