title: PHP cURL removes the fragment after the hashmark
body: <p>I have a scenario where I query for links from a database of which some of the URL's have #tags along with it. Like <a href="http://example.com/about.html#page2" rel="nofollow">http://example.com/about.html#page2</a>. When I run a PHP cURL on all these queried URL's I'm actually getting cURL result for <a href="http://example.com/about.html" rel="nofollow">http://example.com/about.html</a> but not <a href="http://example.com/about.html#page2" rel="nofollow">http://example.com/about.html#page2</a>. My current program after the cURL part, searches the table using the URL that the cURL provides which is <a href="http://example.com/about.html" rel="nofollow">http://example.com/about.html</a>, an entry of which doesnot exists in the database.</p>
  
  <p>My table have links like this :</p>
  
  <p><a href="http://example.com/about.html#page1" rel="nofollow">http://example.com/about.html#page1</a></p>
  
  <p><a href="http://example.com/about.html" rel="nofollow">http://example.com/about.html</a></p>
  
  <p><a href="http://example.com/new.html#something" rel="nofollow">http://example.com/new.html#something</a></p>
  
  <p>How can I improve this scenario ?</p>