True, `strstr` would also work.

We capture it to help reduce the number of requests to the same resource.  If we have three 10 links to `index.php#fragement`, we should only issue 1 request to `index.php`

I think there was also a problem with versions of CURL failing on URIs with fragements.

I like the `strstr` approach, I think it is more readable.