różnice w aplikacji / json i aplikacji / x-www-form-urlencoded
Jaka jest różnica między
Prośba.ContentType = "application / json; charset=utf-8";
I
WebRequest.ContentType = "application / x-www-form-urlencoded";
89
1 answers
Pierwszy przypadek mówi serwerowi www, że publikujesz dane JSON jak w:
{ Name : 'John Smith', Age: 23}
Druga opcja mówi serwerowi www, że będziesz kodował parametry w adresie URL tak jak w:
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/doraprojects.net/template/agent.layouts/content.php on line 54
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/doraprojects.net/template/agent.layouts/content.php on line 54
2012-03-26 21:26:36