If curl http://localhost:80, then
“HTTP Error 404. The requested resource is not found.”
If curl https://localhost:80, then
“The underlying connection is closed: An unexpected error occurred while sending.”
ERR_SSL_PROTOCOL_ERROR <= error if using chrome
SSL_ERROR_RX_RECORD_TOO_LONG <= error if using firefox
PS C:\Users\andrewwang1\source\repos\udemy-microservice-golang\project> curl https://localhost:80 -v
>>
詳細資訊: GET with 0-byte payload
curl : Not Found
HTTP Error 404. The requested resource is not found.
位於 線路:1 字元:1
+ curl http://localhost:80 -v
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
PS C:\Users\andrewwang1\source\repos\udemy-microservice-golang\project> curl https://localhost:80 -v
>>
詳細資訊: GET with 0-byte payload
curl : 基礎連接已關閉: 傳送時發生未預期的錯誤。(The underlying connection is closed: An unexpected error occurred while sending.)
位於 線路:1 字元:1
+ curl https://localhost:80 -v
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest],WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
