curl_seek bug #47204

current curl extension does not work with  file upload to servers which
do a redirect like Amazon web services S3
added curl seek callback functionality to fix this
seek callback function must return a bool