I have a PHP file that I want to grab the visitor IP when they access the file then using cURL to POST the user IP on a remote file on a different server. I know how to receive the variable on the remote server but don't know how to use cURL to post the user IP on the file located on another site. Any help is greatly appreciated.
Asked
Active
Viewed 103 times
0
-
3Possible duplicate of [PHP + curl, HTTP POST sample code?](http://stackoverflow.com/questions/2138527/php-curl-http-post-sample-code) – Peter Uhnak Jan 11 '16 at 11:57
-
Set the option CURLOPT_POST, and set the query data via the option CURLOPT_POSTFIELDS. – syck Jan 11 '16 at 12:21