I have locally set 2 Apache Server on Port 80 and port 81 using XAMPP. Iam successfully able to access them through my browser. Currently the URL can be accessed at
Take a look at CURLOPT_PORT in the manual for curl_setopt()