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 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 retrieve a file, using a proxy if specified, and write that | |
file to disk with a filename based on the filename in the URL. | |
Usage: ProxyTest <proxy|""> <url> | |
"My goal is simply to download a requested file and have it land on my desktop | |
with that exact same name. " | |
curl-library mailing list thread: | |
'Compiling libcurl for https' |
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 and OpenSSL to show SSL negotiated cipher and version. | |
Usage: ShowSSLInfo | |
curl-library mailing list thread: | |
'CURLINFO_TLS_SESSION with OPENSSL returns SSL_CTX instead of SSL' | |
http://curl.haxx.se/mail/lib-2015-09/0127.html | |
Copyright (C) 2015 Jay Satiro <[email protected]> | |
http://curl.haxx.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
#!/usr/bin/env perl | |
=begin comment | |
README | |
Extract the name of the last modified firefox archive from input. | |
Which archive is most recent is determined only by comparing 'last modified' | |
timestamps, the versions are not compared. |
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 is for when we have to update the installed version of curl, libpsl, | |
# libssh2, nghttp2, openssl or zlib in Ubuntu 16 LTS. This is not a single | |
# script. | |
# | |
# https://gist.github.com/jay/d88d74b6807544387a6c | |
# | |
############################################################################### |
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 | |
This script enables HTTP2 in libcurl's generated project files for legacy | |
versions of Visual Studio 2010 - 2013 in the projects/ directory. | |
You'll need to modify these in-script variables for the script to work: |
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
/* Show the name of libcurl's resolver. | |
Usage: ShowLibcurlResolver | |
"Is there a way to programmatically know if the version being used was compiled | |
with the threaded resolver?" | |
curl-library mailing list thread: | |
'segfaulting in Curl_num_addresses on OS X and Ubuntu' | |
http://curl.haxx.se/mail/lib-2015-08/0002.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
/* Use libcurl to retrieve Gmail folders and labels via IMAP over SSL (IMAPS). | |
Usage: ShowGmailFolders <username> <password> | |
curl-library mailing list thread: | |
'Re: DL curl 7.35 mingw32' | |
http://curl.haxx.se/mail/lib-2015-05/0037.html | |
Note: When you attempt to login to Gmail via IMAP they sometimes require a | |
web login first for security reasons. In that case an error will be shown. Such |
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
static function Main() { | |
var today: Date = new Date(); | |
FiddlerObject.StatusText = " CustomRules.js was loaded at: " + today; | |
// Uncomment to add a "Server" column containing the response "Server" header, if present | |
// FiddlerObject.UI.lvSessions.AddBoundColumn("Server", 50, "@response.server"); | |
// https://groups.google.com/forum/#!topic/httpfiddler/RIjfLBU58Io | |
CONFIG.oAcceptedServerHTTPSProtocols = System.Security.Authentication.SslProtocols.Tls | |
| System.Security.Authentication.SslProtocols.Tls11 | |
| System.Security.Authentication.SslProtocols.Tls12; |