[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] http client callback functions

From: koszo.simon
Subject: Re: [lwip-users] http client callback functions
Date: Fri, 12 Jul 2019 07:57:13 -0700 (MST)

Sorry about such a banal error! I corrected the code like this:

char url[500]; 
char domain_name[30]; 
httpc_connection_t conn_settings; 
httpc_state_t *connection; 

conn_settings.use_proxy = 0;   //nincs proxy használat 
conn_settings.headers_done_fn = RecvHttpHeaderCallback; 
conn_settings.result_fn = HttpClientResultCallback;

strcpy(domain_name, "www.procontrol.hu"); 
strcpy(url, "/sendfile/Proxer60_SD_card/"); 
strcat(url, filename_loc); 
dprintf("url:\n%s\n", url); 
err_t error; 
error = httpc_get_file_dns(domain_name, 80, url, &conn_settings,
RecvBMPDrawCallback, NULL, &connection);   //HTTP üzenet elküldése 
dprintf("error: %u\n", error); 

Now It works fine. Thank you for your help!

Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

reply via email to

[Prev in Thread] Current Thread [Next in Thread]