C:\Users\$Username\Downloads> python https_client.py -h
usage: https_client.py [-h] [-url URL] [-format FORMAT] [-port PORT] [-ssl SSL] [-print]
Get website source code. http/https client. (The url in Windows cmd must be "text...", not
text...)
optional arguments:
-h, --help show this help message and exit
-url URL, -u URL type a url (must be "http" or "https" at the beginning of string.)
-format FORMAT, -f FORMAT
type the output format you want (like html, js, css, jpg, png...)
-port PORT type the port you want (attention the port in the url is priority)
-ssl SSL use ssl or not (0 or 1), default auto judge
-print, -p print recive bytes in cmd
python https_client.py -url "https://www.example.com/" -f html -p
python https_client_simple.py
# -https use ssl or not (ssl need crt and key)
python https_server.py -https
python https_server.py
python http_server.py
Run "pacman -S mingw-w64-x86_64-toolchain", and install gcc.
Run "pacman -S make".
Download Source Code From https://github.com/openssl/openssl
cd to folder where "config" file is.
change the prefix and openssldir to what you want.
This command "./config --prefix=/home/ssl --openssldir=/home/ossl shared zlib"
= "./Configure --prefix=/home/ssl --openssldir=/home/ossl shared zlib"
./config --prefix=/home/ssl --openssldir=/home/ossl shared zlib
make
make install
gcc tls.c -I"C:/msys64/home/ssl/include/" -L"C:/msys64/home/ssl/bin" -lws2_32 -llibssl-3-x64 -llibcrypto-3-x64
Add "C:/msys64/home/ssl/bin"(dll path) to environment path or Copy dll file to the path where the ".exe" is. (a.exe)
./a
a