Changeset fe23720
- Timestamp:
- 2006-05-26T18:35:16Z (19 years ago)
- Branches:
- master
- Children:
- a2582c8
- Parents:
- 7deb447
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/http_client.c
r7deb447 rfe23720 375 375 going to use strcat(), whether you like it or not. :-) */ 376 376 377 /* First, find the GET/POST/whatever from the original request. */ 378 s = strchr( req->request, ' ' ); 377 sprintf( new_request, "GET %s HTTP/1.0", url->file ); 378 379 s = strstr( req->request, "\r\n" ); 379 380 if( s == NULL ) 380 381 { … … 385 386 } 386 387 387 *s = 0; 388 sprintf( new_request, "%s %s HTTP/1.0\r\n", req->request, url->file ); 389 *s = ' '; 390 391 s = strstr( req->request, "\r\n" ); 392 if( s == NULL ) 393 { 394 req->status_string = g_strdup( "Error while rebuilding request string" ); 395 g_free( new_request ); 396 g_free( url ); 397 goto cleanup; 398 } 399 400 strcat( new_request, s + 2 ); 388 strcat( new_request, s ); 401 389 new_host = g_strdup( url->host ); 402 390 new_port = url->port;
Note: See TracChangeset
for help on using the changeset viewer.