[GB.NET.CURL]
* NEW: HttpClient now raises the Progress event. git-svn-id: svn://localhost/gambas/trunk@5664 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
3a1b334193
commit
172f592053
2 changed files with 4 additions and 3 deletions
|
@ -84,7 +84,6 @@ static void ftp_reset(void *_object)
|
|||
{
|
||||
GB.FreeString(&THIS->data);
|
||||
GB.Unref(&THIS_FTP->commands);
|
||||
CURL_set_progress(THIS_CURL, FALSE);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -301,6 +301,7 @@ static void http_get(void *_object, GB_ARRAY custom_headers, char *target)
|
|||
}
|
||||
|
||||
curl_easy_setopt(THIS_CURL, CURLOPT_HTTPHEADER, headers);
|
||||
CURL_set_progress(THIS_CURL, TRUE);
|
||||
|
||||
if (THIS->async)
|
||||
{
|
||||
|
@ -359,7 +360,6 @@ static void http_send(void *_object, int type, char *sContent, char *sData, int
|
|||
|
||||
THIS_HTTP->len_sent = 0;
|
||||
|
||||
|
||||
mylen = strlen(sContent) + strlen("Content-Type: ") + 1;
|
||||
GB.Alloc((void*)&THIS_HTTP->sContentType, mylen);
|
||||
|
||||
|
@ -392,6 +392,8 @@ static void http_send(void *_object, int type, char *sContent, char *sData, int
|
|||
curl_easy_setopt(THIS_CURL, CURLOPT_POSTFIELDSIZE, lendata);
|
||||
}
|
||||
|
||||
CURL_set_progress(THIS_CURL, TRUE);
|
||||
|
||||
if (THIS->async)
|
||||
{
|
||||
CURL_start_post(THIS);
|
||||
|
@ -448,7 +450,7 @@ BEGIN_PROPERTY(HttpClient_CookiesFile)
|
|||
END_PROPERTY
|
||||
|
||||
|
||||
BEGIN_PROPERTY (HttpClient_Auth)
|
||||
BEGIN_PROPERTY(HttpClient_Auth)
|
||||
|
||||
if (READ_PROPERTY)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue