Use url-http-end-of-headers instead of search-forward.