Http fileError

From TrillWiki

Jump to: navigation, search

The http_fileError notification is sent when an http file transfer fails after being requested using httpFileRequest.

Compatibility: 2.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "http_fileError", http_result_t *data, void *userData);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

Http fileError utilitizes the http_result_t structure.

struct http_result_t 
{ 
    unsigned int                struct_size; 

    char                        *url; 

    char                        *buffer; 
    int                         buffer_size; 

    /* 3.1 
     */ 

    int                         result_state; 
    int                         connection_error_code; 
    int                         http_response_code; 
    char                        *http_response_headers; 
};



url
The url requested to be downloaded.


Return Value

Must return 0.

Remarks

None.


See also: httpFileRequest