/**
* @see https://docs.oracle.com/javase/8/docs/api/java/net/URLConnection.html
* @see https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html
* @see https://www.baeldung.com/java-http-request
* @see https://www.baeldung.com/httpurlconnection-post
CURL parameter --max-time
includes --connect-timeout
to separate the timeout of the handshake phase.
CURL - Timeouts · Everything curl
In addition, CURL can distinguish timeout errors at different stages: "connection timeout" and "operation timeout".
For example, CURL command with 5 second connection timeout and 25 second maximum timeout setting:
openssl genrsa -out self-ssl.key
openssl req -new -key self-ssl.key -out self-ssl.csr -config csr.conf
openssl x509 -req -days 365 -in self-ssl.csr -signkey self-ssl.key -out self-ssl.crt -extensions req_ext -extfile csr.conf
Sign from Root CA:
openssl x509 -req -days 365 -extensions req_ext -extfile csr.conf -CA RootCA.crt -CAkey RootCA.key -in self-ssl.csr -out self-ssl.crt
App | Andriod URL Scheme |
iOS URL Scheme |
App/Universal link |
---|---|---|---|
LINE | line:// | line:// | https://line.me/R/ti/p/%40317xjemy |
LINE (LIFF) | line://app/1431716824-lWG5eryW?to=/cgm | line://app/1431716824-lWG5eryW?to=/cgm | https://liff.line.me/1431716824-lWG5eryW?to=/cgm |
UberEats | ubereats:// | ubereats:// | https://www.ubereats.com |
Chrome | chrome:// | chrome:// |
The exchange of new line & br HTML tag could refer to PHP - nl2br() function, which uses to inserts HTML line breaks before all newlines in a string.
These JavaScript functions consider whether to use insert or replace to handle the swap.
It's easy to configurate a Laravel server site with directory protection:
Laravel Web Server Configuration
Laravel smartly detects the current base url so that you don't need to set the base url for subdirectoy:
Set into [mysqld]
of MySQL config, for Ubuntu your could create a file /etc/mysql/conf.d/disable_strict_mode.cnf
:
[mysqld]
sql_mode=NO_ENGINE_SUBSTITUTION
SQL mode example:
STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION