Download pdf from html page using curl

Attempting to seek on non-local files may work with small offsets, but this is the guidelines on http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 This is a nice and simple substitute to get_file_contents() using curl, it returns FALSE the result when the web page is fully downloaded (i.e. HTTP payload length