Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Setting PHP/CURL Options > CURLOPT_URL

CURLOPT_URL

Use the CURLOPT_URL option to define the target URL for your PHP/CURL session, as shown in Example A-2.

Example A-2. Defining the target URL

curl_setopt($s, CURLOPT_URL, "http://www.schrenk.com/index.php");

You should use a fully formed URL describing the protocol, domain, and file in every PHP/CURL file request.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial