Cómo enviar httpWebRequest usando datos JSON
//
/// Devuelve datos JSON
///
/// Datos JSON a procesar
///
///
cadena pública GetResponseData(string JSONData,string Url)
{byte[] bytes = Encoding.UTF8.GetBytes(JSONData)
p>Solicitud HttpWebRequest = ( HttpWebRequest)WebRequest.Create(Url);
solicitud.Metodo = "POST"
solicitud.ContentLength = bytes.Length; /p>
p>
request.ContentType = "texto/texto";
request.ContentLength = bytes.Length
request.ContentType = "texto/ texto
request.ContentLength = bytes.Length;
request.ContentType = "text/xml"
Flujo reqstream = request.GetRequestStream(); /p>
reqstream.Write(bytes, 0, bytes.Longitud
);