Changeset 516a9c6
- Timestamp:
- 2010-07-16T23:11:37Z (14 years ago)
- Branches:
- master
- Children:
- ef14a83
- Parents:
- 7885d0f
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/http_client.c
r7885d0f r516a9c6 35 35 static gboolean http_ssl_connected( gpointer data, void *source, b_input_condition cond ); 36 36 static gboolean http_incoming_data( gpointer data, int source, b_input_condition cond ); 37 38 39 void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ) 37 static void http_free( struct http_request *req ); 38 39 40 struct http_request *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ) 40 41 { 41 42 struct http_request *req; … … 72 73 } 73 74 74 void*http_dorequest_url( char *url_string, http_input_function func, gpointer data )75 struct http_request *http_dorequest_url( char *url_string, http_input_function func, gpointer data ) 75 76 { 76 77 url_t *url = g_new0( url_t, 1 ); … … 446 447 } 447 448 448 void http_free( struct http_request *req )449 static void http_free( struct http_request *req ) 449 450 { 450 451 g_free( req->request ); -
lib/http_client.h
r7885d0f r516a9c6 81 81 you want to add some extra headers. As you can see, HTTPS connections 82 82 are also supported (using ssl_client). */ 83 void *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ); 84 void *http_dorequest_url( char *url_string, http_input_function func, gpointer data ); 85 86 void http_free( struct http_request *req ); 83 struct http_request *http_dorequest( char *host, int port, int ssl, char *request, http_input_function func, gpointer data ); 84 struct http_request *http_dorequest_url( char *url_string, http_input_function func, gpointer data );
Note: See TracChangeset
for help on using the changeset viewer.