bruuuce Posted March 6, 2008 Share Posted March 6, 2008 CURLOPT_PORT works successfully. However, the page I want to connect to has more to the url after the port. So, i'm trying to connect to: subdomain.domain.org:8080/Folder i can successfully connect to: subdomain.domain.org:8080 any suggestions, im stumped. <?php // INIT CURL $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://subdomain.gotdns.org'); curl_setopt($ch, CURLOPT_PORT, '8080'); curl_setopt ($ch, CURLOPT_POST, 1);. curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $store = curl_exec ($ch); echo $store; curl_close ($ch); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.