php发送post请求

Http中传输对象,最好的表现形式莫过于 JSON 字符串了,可是做为参数的接收方,又是须要被告知传过来的是JSON!web function http_post_json($url, $jsonStr) { $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_URL, $url)
相关文章
相关标签/搜索