diferencias en application / json y application / x-www-form-urlencoded
¿Cuál es la diferencia entre
Solicitud.ContentType = "application / json; charset = utf-8";
Y
WebRequest.ContentType = "application / x-www-form-urlencoded";
89
1 answers
El primer caso es decirle al servidor web que está publicando datos JSON como en:
{ Name : 'John Smith', Age: 23}
La segunda opción es decirle al servidor web que codificará los parámetros en la URL como en:
Name=John+Smith&Age=23
109
Author: Icarus,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-03-26 21:26:36
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-03-26 21:26:36