2020年9月28日 星期一

curl_setopt($ch,CURLOPT_POST,1) vs. curl_setopt($ch,CURLOPT_CUSTOMREQUEST,"POST")

PHP 的 curl_setopt 這兩個有不同嗎?

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");

經抓封包結果,兩者完全相同


沒有留言:

OpenVPN disconnect after 3.4.0

如果 OpenVPN 本來都連線正常,Server 也沒動,OpenVPN Client 升版到 3.4.0 以後的版本,就不能連了, 狀況是連上又斷線,一直重複 (repeat connect and disconnect) 我的環境 RouterOS 6.49.14 及 7....