Update http_query

This commit is contained in:
twinaphex 2014-12-20 21:02:32 +01:00
parent e355118398
commit 4cc853b9be

View File

@ -144,15 +144,18 @@ static http_retcode http_query(char *command, char *url,
* Limitations: the url is truncated to first 256 chars and * Limitations: the url is truncated to first 256 chars and
* the server name to 128 in case of proxy request. * the server name to 128 in case of proxy request.
*/ */
static http_retcode http_query(command, url, additional_header, mode,
data, length, pfd) /*
char *command; /* command to send */ command - command to send
char *url; /* url / filename queried */ url - url / filename queried
char *additional_header; /* additional header */ additional_header - additional header
querymode mode; /* type of query */ mode - type of query
char *data; /* Data to send after header. If NULL, not data is sent */ data - Data to send after header. If NULL, not data is sent
int length; /* size of data */ length - size of data
int *pfd; /* pointer to variable where to set file descriptor value */ pfd - pointer to variable where to set file descriptor value
*/
static http_retcode http_query(char *command, char *url, char *additional_header, querymode mode,
char *data, int length, int *pfd)
{ {
int s; int s;
struct hostent *hp; struct hostent *hp;