Web Application Basics

发布时间:2026/11/25 18:32:37

Web Application Basics Web Application BasicsURLScheme:often httpsUser(rare)Host/Domain:website addresstyposquatting:mimic a website to trick people into giving up sensitive info.Port:usually 80-http,443-httpsPath:file pathQuery String:have ?—Modify-ableFragment—Modify-ableHTTP Request:start line(methods/url path/http version)request headers(host,user-agent,- - - web browserreferer,- - -such as www.google.com,the web where the request comefromcookies,content-type,content-length…)Request Body- - 4kinds:Url encoded(application/x-www-form-urlencoded) ;keyvalueform-data表格数据(multipart/form-data) ;boundary----WebKitFormBoundary7MA4YWxkTrZu0gW- - - 之后为生成的分割头部)json(application/json); { “username”“” }xml(application/xml) ;just like htmlHTTP ResponseThe first linein every HTTP response is called the Status Line. It gives you three key pieces of info:HTTP Version: This tells you which version of HTTP is being used.Status Code: A three-digit number showing the outcome of your request.Reason Phrase: A short message explaining the status code in human-readable terms.Since we already covered HTTP Versions in Task 5, let’s focus on the Status Codes and Reason Phrases here.Status Codes and Reason PhrasesThe Status Code is the number that tells you if the request succeeded or failed, while the Reason Phrase explains what happened. These codes fall into five main categories:Informational Responses (100-199)These codes mean the server has received part of the request and is waiting for the rest. It’s a “keep going” signal.Successful Responses (200-299)These codes mean everything worked as expected. The server processed the request and sent back the requested data.Redirection Messages (300-399)These codes tell you that the resource you requested has moved to a different location, usually providing the new URL.Client Error Responses (400-499)These codes indicate a problem with the request. Maybe the URL is wrong, or you’re missing some required info, like authentication.Server Error Responses (500-599)These codes mean the server encountered an error while trying to fulfil the request. These are usually server-side issues and not the client’s fault.Common Status CodesHere are some of the most frequently seen status codes:100 (Continue)The server got the first part of the request and is ready for the rest.200 (OK)The request was successful, and the server is sending back the requested resource.301 (Moved Permanently)The resource you’re requesting has been permanently moved to a new URL. Use the new URL from now on.404 (Not Found)The server couldn’t find the resource at the given URL. Double-check that you’ve got the right address.500 (Internal Server Error)Something went wrong on the server’s end, and it couldn’t process your request.Response Headerjust headersSecurity Headers1.CSPContent-Security-Policy: default-src ‘self’; script-src ‘self’ https://cdn.tryhackme.com; style-src ‘self’2.HSTSStrict-Transport-Security: max-age63072000; includeSubDomains; preload3.X-Content-Type-OptionsX-Content-Type-Options: nosniff4.Referrer-PolicyThis header controls the amount of information sent to the destination web server when a user is redirected from the source web server, such as when they click a hyperlink. The header is available to allow a web administrator to control what information is shared. Here are some examples of Referrer-Policy:Referrer-Policy: no-referrerReferrer-Policy: same-originReferrer-Policy: strict-originReferrer-Policy: strict-origin-when-cross-originHere’s a breakdown of the Referrer-Policy header by directives:no-referrerThis completely disables any information being sent about the referrersame-originThis policy will only send referrer information when the destination is part of the same origin. This is helpful when you want referrer information passed when hyperlinks are within the same website but not outside to external websites.strict-originThis policy only sends the referrer as the origin when the protocol stays the same. So, a referrer is sent when an HTTPS connection goes to another HTTPS connection.strict-origin-when-cross-originThis is similar to strict-origin except for same-origin requests, where it sends the full URL path in the origin header.THANKS FOR VIEWING!
延伸阅读

更多相关文章

2026/11/25 18:32:35

文件读写全套易错笔记

一、语法类错误(错误代码修正代码) 错误1:fopen不做空指针判断 错误代码 FILE* fp fopen("test.txt","r"); fputc(a,fp); // 打开失败fpNULL,直接崩溃问题:文件打开失败不会捕获,后续…

2026/11/19 23:40:53

vla学习笔记(2) lerobot配置gazebo

一、写gazebo.launch.py 直接复制下列文件,并且修改对应的文件名称import os from launch import LaunchDescription from launch.actions import ExecuteProcess, RegisterEventHandler, TimerAction from launch_ros.actions import Node from launch_ros.substit…

2026/11/10 14:02:40

概念、概要、详细设计编写心法

一文讲清概念设计、概要设计、详细设计:别再把三种文档写混了设计文档不是越细越好,而是要在正确阶段回答正确问题:概念设计统一业务语言,概要设计搭系统骨架,详细设计画代码施工图。很多研发同学写设计文档时&#xf…

2026/11/25 18:28:00

电工证考试牌子有哪些?考前押题怎么找才靠谱?

电工证考试牌子有哪些?考前押题怎么找才靠谱? 证书过期了不知道怎么复审延期,是不是你正在经历的困境?很多人在工作中发现,电工证一旦过期,不仅影响岗位资格,还可能带来安全责任风险。更让人头疼的是,复审流程不熟悉,连该找谁咨询都一头雾水。如果你…

2026/11/25 18:28:00

福州电工证在哪里报名 上岗必备怎么解决过期问题

福州电工证在哪里报名 上岗必备怎么解决过期问题 证书过期了不知道怎么复审延期?这事儿真不是小事,尤其是对于像你这样刚毕业的河南工程类学生来说, 上岗必备 的电工证如果失效了,不仅影响找工作,还可能连入职资格都拿不到。…

2026/11/25 18:27:59

特种工试题及答案怎么准备?官方报名入口在这里,别再怕挂科了

特种工试题及答案怎么准备?官方报名入口在这里,别再怕挂科了 实操考试心里没底怕挂科,这几乎是所有准备考特种作业证的学员心头的疙瘩。尤其是像电工作业、焊工证、高处作业这些实操要求高的工种,一不小心就可能栽在实操环节。如果你正准备考试,或是正在…

2026/11/25 18:27:58

福州市报考高压电工证多少钱?工地太忙根本没时间复习考试怎么办?

福州市报考高压电工证多少钱?工地太忙根本没时间复习考试怎么办? 工地太忙根本没时间复习考试,这几乎是所有一线工友的共同困扰。尤其是像高压电工证这类技术含量高、考试内容复杂的证书,很多工人想考,但苦于没时间准备。福州市报考高压电工证多少钱?这…

2026/11/25 18:22:56

查浙江省电工证报考条件与考试时间

浙江省电工证过期了不知道怎么复审延期?内部消息教你一步步解决 证书过期了不知道怎么复审延期,你不是一个人。尤其是浙江省电工证,一旦过了有效期,不仅影响日常工作,还可能面临法律责任。最近有朋友私信问我,他手上有一本高压电工证,已经过了有效期,…

2026/11/24 13:09:03

高压电工证还能年审吗良心建议来了,学历不高也能考!

高压电工证还能年审吗良心建议来了,学历不高也能考! 你是不是也担心,自己学历不高,根本报不上高压电工证?其实不然,现在政策已经非常明确, 高压电工证还能年审 ,而且只要符合条件, 学历不是门槛 , 良心建议…

2026/11/24 13:02:07

吴江的电工证免费培训怎么报名?官方报名入口全解析

吴江的电工证免费培训怎么报名?官方报名入口全解析 你急需特种作业证才能上岗找工作,但不知道从哪里下手?别急,现在就给你讲明白【吴江的电工证免费培训】到底怎么操作,以及怎么通过 官方报名入口…

2026/11/25 17:29:07

电工证复审肃州区的真实经历:别被中介坑了,自己搞定更靠谱

电工证复审肃州区的真实经历:别被中介坑了,自己搞定更靠谱 不知道去哪报名怕被中介坑?这几乎是每个需要办理或复审电工证的人的真实经历。尤其在肃州区,信息不透明、流程复杂、中介收费高又不靠谱,让很多电工从业者感到头疼。作为一个在应急管理和特种作…

2026/11/25 0:04:22

阳泉电工证考试内容怎么考?工地太忙根本没时间复习考试

阳泉电工证考试内容怎么考?工地太忙根本没时间复习考试 工地太忙根本没时间复习考试,很多电工工友都在头疼这个问题。尤其是像阳泉地区,施工进度紧、任务重,一不小心就错过了电工证的考试准备时间。如果你也正在为阳泉电工证考试内容发愁,或者想了解…

2026/11/25 0:04:24

永州电工证在哪里查询通过率揭秘:怕考不过白交培训费?

永州电工证在哪里查询通过率揭秘:怕考不过白交培训费? 你是不是也担心考电工证白交培训费?特别是像永州电工证在哪里查询这种问题,很多学员一上来就问,到底能不能顺利拿到证?其实这背后隐藏着一个 通过率揭秘…

2026/11/25 10:58:53

面向复杂光照与角度的宠物面部识别鲁棒性增强策略

在智慧养宠时代,基于视觉的宠物身份识别技术正逐步从实验室走向家庭应用。然而,与配合度高的人类不同,宠物是典型的“非合作生物识别对象”——它们不会主动配合摄像头调整姿态,更无法控制光照环境。实际应用中,我们常…

2026/11/25 10:51:26

SSM电子书店源码全解析:结构、原理、部署与排错实战

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

还想了解更多?直接咨询顾问

免费诊断 + 免费方案 + 透明报价。

全国咨询热线400-8866-253
免费获取方案
☎咨询二维码 ☎ ↑