zoukankan      html  css  js  c++  java
  • Wed 基础

    HTTP协议

    www服务应用的默认端口为80

    https加密服务的默认端口为443

    常见状态码及其对应的作用

    http://oldboy.blog.51cto.com/2561410/716294

    200 - OK,服务器成功返回网页 

        - Standard response for successful HTTP requests.

    301 - Moved Permanently(永久跳转),请求的网页已永久跳转到新位置。
        - This and all future requests should be directed to the given.

    403 - Forbidden(禁止访问),服务器拒绝请求
        - forbidden request (matches a deny filter) => HTTP 403
        - The request was a legal request, but the server is refusing to respond to it.

    404 - Not Found,服务器找不到请求的页面。
        - The requested resource could not be found but may be available again in the future.

    500 - Internal Server Error(内部服务器错误)
        - internal error in haproxy => HTTP 500
        - A generic error message, given when no more specific message is suitable.

    502 - Bad Gateway(坏的网关),一般是网关服务器请求后端服务时,后端服务没有按照http协议正确返回结果。
        - the server returned an invalid or incomplete response => HTTP 502
        - The server was acting as a gateway or proxy and received an invalid response from the upstream server.

    503 - Service Unavailable(服务当前不可用),可能因为超载或停机维护。
        - no server was available to handle the request => HTTP 503
        - The server is currently unavailable (because it is overloaded or down for maintenance).

    504 - Gateway Timeout(网关超时),一般是网关服务器请求后端服务时,后端服务没有在特定的时间内完成服务。
        - the server failed to reply in time => HTTP 504
        - The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

  • 相关阅读:
    解决DataGridView中回车换行的问题
    几条经典的SQL语句
    SQL中把一个表中的数据导出到一个新表中
    [转载]TCP的网络编程中一些典型的问题,以及一些分析和解决方案
    Delphi调用C#web服务参数无法接收的问题
    IIS服务器不支持中文文件名的解决方法
    SQL SERVER2005导入导出工具
    为远程IP服务器取个本地认识的主机名
    Win Form中如何把ENter回车键转换成Tab键
    CheckedListBox 用法
  • 原文地址:https://www.cnblogs.com/wanglan/p/7403501.html
Copyright © 2011-2022 走看看