为什么这个PHP脚本总是显示“kiriman gagal diterima”(未能收到)?

I have two server, it works on the old server but it don't work if I changed the target site to my new server. It shows "failed to receive" (kiriman gagal diterima). My pc executed this php script to send some data from my pc to the destination server

https://drive.google.com/open?id=1B54KbvdD3EiLGWUI6vqs9g4oGfU56cc_

php 5.6.38 on new server, php 5.6.34 on old server

This is the error.log

[Tue Nov 20 05:32:16.691683 2018] [ssl:warn] [pid 2916:tid 276] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 20 05:32:16.785283 2018] [ssl:warn] [pid 2916:tid 276] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Tue Nov 20 05:32:16.816483 2018] [mpm_winnt:notice] [pid 2916:tid 276] AH00354: Child: Starting 150 worker threads.

This is access log from xampp

127.0.0.1 - - [23/Nov/2018:15:54:46 +0800] "POST /present/present/transmit/sync/json HTTP/1.1" 200 39 "http://127.0.0.1/present/present/client/sinkron" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0"
127.0.0.1 - - [23/Nov/2018:16:12:06 +0800] "POST /present/present/transmit/sync/json HTTP/1.1" 200 39 "http://127.0.0.1/present/present/client/sinkron" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0"
127.0.0.1 - - [23/Nov/2018:18:04:51 +0800] "POST /present/present/transmit/sync/json HTTP/1.1" 200 39 "http://127.0.0.1/present/present/client/sinkron" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0"
127.0.0.1 - - [23/Nov/2018:18:05:50 +0800] "POST /present/present/transmit/sync/json HTTP/1.1" 200 39 "http://127.0.0.1/present/present/client/sinkron" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0"

a co worker said the curl isn't running on the new server but last time I checked it, curl is already enabled.

I'm using ubuntu 18.04 bionic on new server, old server is using ubuntu 16.04 xenial