curl header設置參數

在curl的請求的header中加入參數。php 使用的場景能夠是客戶端向服務器端發送驗證參數,這個參數須要隱藏發送。api 代碼:數組 // 初始化 $ch = curl_init(); // 設置header須要發送的參數 $header = array( 'apikey: 11a9a4a3d961da54d753f6b3c92ff275', 'testname: fdlin'
相關文章
相關標籤/搜索