diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-02-10 10:52:44 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-02-10 10:54:22 +0100 |
commit | 86ef51ee3c3488ba431696da3883b56927c0a574 (patch) | |
tree | 4422a705c3d0788e52f786bcedf9f94e1b16ce0b /fb-helper.c | |
parent | bd961a8667c0714a8e834ee390a5d8ba9814274c (diff) |
fb-helper.c: clean up curl options; set follow location
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'fb-helper.c')
-rw-r--r-- | fb-helper.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fb-helper.c b/fb-helper.c index 560e1e0..b2d6e66 100644 --- a/fb-helper.c +++ b/fb-helper.c @@ -316,8 +316,11 @@ int main(int argc, char *argv[]) /* bail if the upload stalls for 30 seconds */ - curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, (long)1); - curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, (long)30); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 30L); + + curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10L); /* save time for progress calculation */ gettimeofday(&cb_data.last, NULL); |