Differences From Artifact [3e501ee1e4]:
- File
utils/ofhttp/OFHTTP.m
— part of check-in
[892fbf97ac]
at
2018-03-11 20:38:05
on branch trunk
— ofhttp: Print headers as we receive them
This allows printing all headers of redirects in verbose mode. (user: js, size: 26699) [annotate] [blame] [check-ins using]
To Artifact [de7a31ac42]:
- File utils/ofhttp/OFHTTP.m — part of check-in [38ccb06dff] at 2018-03-11 20:47:45 on branch trunk — ofhttp: Allow insecure redirects with --insecure (user: js, size: 26796) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
107 108 109 110 111 112 113 | @"-P --proxy " @" Specify SOCKS5 proxy\n " @"-q --quiet " @" Quiet mode (no output, except errors)\n " @"-v --verbose " @" Verbose mode (print headers)\n " @" --insecure " | | | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | @"-P --proxy " @" Specify SOCKS5 proxy\n " @"-q --quiet " @" Quiet mode (no output, except errors)\n " @"-v --verbose " @" Verbose mode (print headers)\n " @" --insecure " @" Ignore TLS errors and allow insecure redirects")]; } [OFApplication terminateWithStatus: status]; } static OFString * fileNameFromContentDisposition(OFString *contentDisposition) |
︙ | ︙ | |||
493 494 495 496 497 498 499 500 501 502 503 504 505 506 | OF_LOCALIZED(@"output_only_with_one_url", @"%[prog]: Cannot use -o / --output when more than one URL " @"has been specified!", @"prog", [OFApplication programName])]; [OFApplication terminateWithStatus: 1]; } [self performSelector: @selector(downloadNextURL) afterDelay: 0]; } - (void)client: (OFHTTPClient *)client didCreateSocket: (OF_KINDOF(OFTCPSocket *))sock request: (OFHTTPRequest *)request | > > > | 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 | OF_LOCALIZED(@"output_only_with_one_url", @"%[prog]: Cannot use -o / --output when more than one URL " @"has been specified!", @"prog", [OFApplication programName])]; [OFApplication terminateWithStatus: 1]; } if (_insecure) [_HTTPClient setInsecureRedirectsAllowed: true]; [self performSelector: @selector(downloadNextURL) afterDelay: 0]; } - (void)client: (OFHTTPClient *)client didCreateSocket: (OF_KINDOF(OFTCPSocket *))sock request: (OFHTTPRequest *)request |
︙ | ︙ |