curl option cookiefile has to be set