This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于 http client demo 服务器接收JSON数据问题

Other Parts Discussed in Thread: CC3200

连接到AP和服务器都没有问题 但是post上传到php,无法打印我的JSON数据。

宏定义是这样的编译没有问题:

#define       POST_REQUEST_URI        "zhmc2015.6655.la:13599/api.php"
#define       POST_DATA                           "{\n\"firstName\":\"John\",\n\"lastName\":\"Doe\"\n}"

PHP接收是<?php

                      print_r($_POST);

                      ?>

   烧程序后,网页显示的是Array()  空数组,就是没法接收字符串,使用其他打印字符串也不行,请问原因在哪里?