Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

hit a simple url using curl in php

  <?php
  ob_start();
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL,'https://example.com/student_list.php');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response = curl_exec($ch);
  echo $response;
  ?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hit #simple #url #curl #php
ADD COMMENT
Topic
Name
7+1 =