This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Use libcurl to retrieve URL via HTTP2 using a reordered cipher list. | |
| Usage: ReorderCipherList <url> | |
| This program deprioritizes HTTP/2 blacklisted ciphers in the client cipher | |
| list and then uses that reordered list in its client handshake with the server. | |
| Note that according to HTTP/2 RFC 7540 the blacklist enforcement is described | |
| using the RFC semantic 'MAY' which is the same as 'OPTIONAL'. In this code I | |
| refer to the ciphers as just blacklisted or banned. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Use libcurl to upload POST data. | |
| Usage: PostUpload <post_data_filename> <url> | |
| Used this as a speed test in Win7 x64, see | |
| https://github.com/curl/curl/issues/708 | |
| First test the speed in a web browser: | |
| Go to https://testmy.net/mirror and choose the geographically closest mirror. | |
| After the mirror is set click on 'Upload Test'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Use libcurl to add some easy handles to a multi handle, then list them. | |
| Usage: ListEasyHandles | |
| curl-library mailing list thread: | |
| 'How to list easy handles from a multi handle' | |
| https://curl.haxx.se/mail/lib-2016-06/0000.html | |
| * Copyright (C) 2016 Jay Satiro <[email protected]> | |
| https://curl.se/docs/copyright.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @-moz-document domain("github.com") { | |
| @font-face { | |
| font-family: "Segoe UI"; | |
| font-weight: normal; | |
| font-style: normal; | |
| src: local("Arial"); | |
| } | |
| @font-face { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env perl | |
| =begin comment | |
| README | |
| ./checkout-curl-release.pl <"latest" | tag | version> | |
| This script fetches and checks out the release tag marked as "latest" (or | |
| a user-specified release tag or version) from the canonical curl repo on | |
| github, and then modifies the curl/libcurl version includes to use the version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Display how arguments are parsed in Windows. | |
| VS 2010 x86: | |
| cl /nologo /W4 getargs.c /MD /Fegetargs-cl && getargs-cl | |
| VS 2010 x86, for win2k compatibility build against the WinDDK: | |
| cl /nologo /W4 getargs.c /MD /Fegetargs-cl C:\WinDDK\7600.16385.1\lib\win7\i386\msvcrt_win2000.obj /IC:\WinDDK\7600.16385.1\inc\crt /link /SUBSYSTEM:CONSOLE,5.00 /OSVERSION:5.00 /LIBPATH:C:\WinDDK\7600.16385.1\lib\Crt\i386 && getargs-cl | |
| mingw x86: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Parse a stream received by libcurl into sections. | |
| Usage: ParseStream | |
| This program is the same as libcurl example getinmemory.c except that it also | |
| parses the received data into sections. | |
| A data section refers to attributes and data and is received in this format: | |
| [[<4 bytes: attribute size><attributes><8 bytes: data size><data>]...] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :: Set the AC & DC brightness in the current power scheme. | |
| :: | |
| :: Usage: "setbrightness.bat" <brightness-level> | |
| :: | |
| :: Based on https://stackoverflow.com/a/26766798 | |
| :: Also see https://github.com/HubKing/LinkBrightness | |
| :: | |
| :: Public Domain: No License. Written by Jay Satiro <[email protected]> | |
| :: | |
| :: https://gist.github.com/jay/2c4ca23314f1ed31c24da390d86c2b23 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Use libcurl to show the local port and IP address in the progress function. | |
| Usage: ShowIPPort <URL> [filename] | |
| If filename is specified then the data received is saved to filename.tmp which | |
| is then renamed to filename if the download was successful (2xx) or deleted if | |
| not. | |
| If filename is not specified then the data received is sent to stdout. If | |
| stdout is attached to a tty and the data received appears to be binary data |