Changeset View
Changeset View
Standalone View
Standalone View
util/http.c
Context not available. | |||||
request=xmalloc(strlen(server)*2 + strlen(p) | request=xmalloc(strlen(server)*2 + strlen(p) | ||||
+ (authstr?strlen(authstr):0) | + (authstr?strlen(authstr):0) | ||||
+ (proxy_authstr?strlen(proxy_authstr):0) + 65); | + (proxy_authstr?strlen(proxy_authstr):0) + 65); | ||||
if( proxy ) | if( proxy && *proxy ) | ||||
sprintf( request, "%s http://%s:%hu%s%s HTTP/1.0\r\n%s%s", | sprintf( request, "%s http://%s:%hu%s%s HTTP/1.0\r\n%s%s", | ||||
hd->req_type == HTTP_REQ_GET ? "GET" : | hd->req_type == HTTP_REQ_GET ? "GET" : | ||||
hd->req_type == HTTP_REQ_HEAD? "HEAD": | hd->req_type == HTTP_REQ_HEAD? "HEAD": | ||||
Context not available. |