title: How to call specific method of PHP with CURL
body: <p>I m developing an API.In this API i need to modify some of users data who have already singup..(basically update method which is in <strong>dosomething.php</strong> page).</p>
  
  <p>So i know about PUT method..but i m having more than one method for user updates..</p>
  
  <p>so my Question is how do i make my dosomething.php page understand that which update method is being called by curl.</p>
  
  <p>My curl url is </p>
  
  <blockquote>
    <p><a href="http://localhost/apitest/dosomething.php" rel="nofollow">http://localhost/apitest/dosomething.php</a></p>
  </blockquote>
  
  <p>.</p>
  
  <p>Should i get data from curl request and than use <strong>switch case in dosomething.php</strong> page?
  Help me which is proper way to do.</p>
  
  <hr>
  
  <p>now said by Daniel A. White can i do like this
  My curl url
  <a href="http://localhost/apitest/dosomething.php?method=updatemobileno" rel="nofollow">http://localhost/apitest/dosomething.php?method=updatemobileno</a></p>
  
  <p>and than get this variable value in php and use it to select my specific method??</p>