<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Http - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/http/</link><description>Http - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Wed, 19 Feb 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/http/" rel="self" type="application/rss+xml"/><item><title>HttpAPI规范及生态组件</title><link>https://rd163.visword.com/posts/http-api-spec/</link><pubDate>Wed, 19 Feb 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/http-api-spec/</guid><description><![CDATA[<h2 id="背景" class="headerLink">
    <a href="#%e8%83%8c%e6%99%af" class="header-mark"></a>背景</h2><p>随着业务的增多，越来越多的服务需要提供http协议的API接口供第三方调用， 由于http api并不像trpc协议那样有一个通用的协议规范来定义约束接口， 通常API开发者需要提供一份API文档来说明每个API的详细参数。
如：<a href="https://cloud.tencent.com/document/product/213/15692" target="_blank" rel="noopener noreferrer">腾讯云API文档</a> 等， 这些文档分散在各个地方，缺乏统一的管理，并且每篇文档的撰写风格也不一样，这就增加了API调用方的接入负担。。。<br>
总结一下，现有的API管理体系存在这如下缺点：</p>]]></description></item><item><title>Python Http 客户端库</title><link>https://rd163.visword.com/posts/python-http-client-libs/</link><pubDate>Wed, 15 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/python-http-client-libs/</guid><description><![CDATA[<h2 id="urlliburllib2" class="headerLink">
    <a href="#urlliburllib2" class="header-mark"></a>urllib、urllib2</h2><p>Python2中早期使用的http库 urllib、urllib2 ，给我们提供了许多方便的功能。</p>
<h2 id="requests" class="headerLink">
    <a href="#requests" class="header-mark"></a>requests</h2><p>requests 是使用率非常高的 HTTP 库.</p>
<p>异常情况处理说明：</p>
<p>在发送HTTP请求获取数据的过程中，可能会遭遇以下异常:</p>]]></description></item><item><title>CSRF</title><link>https://rd163.visword.com/posts/http-csrf/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/http-csrf/</guid><description><![CDATA[<h1 id="csrf" class="headerLink">
    <a href="#csrf" class="header-mark"></a>CSRF</h1><p>CSRF 是指跨站的请求伪造，这种攻击方法会强迫使用者在他们已经验证身份的网站中，执行某些恶意的伪造操作，因为已经验证过该使用者，所以网站就会以操作来自该使用者，因此接受了该操作。举例来说，某个使用者登入银行帐户后，去逛别的网站，但不小心点开恶意网站，该恶意网站中的代码用这名使用者的名义，进行未经同意的转帐操作。</p>]]></description></item><item><title>HTTP 相关的库</title><link>https://rd163.visword.com/posts/http-libs/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/http-libs/</guid><description><![CDATA[<h1 id="http-相关的库" class="headerLink">
    <a href="#http-%e7%9b%b8%e5%85%b3%e7%9a%84%e5%ba%93" class="header-mark"></a>HTTP 相关的库</h1><h2 id="c-语言" class="headerLink">
    <a href="#c-%e8%af%ad%e8%a8%80" class="header-mark"></a>C 语言</h2><p><strong>libmicrohttpd</strong></p>
<p>libmicrohttpd 是 GUN 下开源的一个小型的 HTTP 库，能够方便的嵌入到系统中。支持 HTTP 1.1 可以同时侦听多个端口，具有 select, poll, pthread, thread poo 等多种模式，库平台支持 GNU/Linux, FreeBSD, OpenBSD, NetBSD, Android, Darwin (macOS), W32, OpenIndiana/Solaris, z/OS 等。</p>]]></description></item><item><title>Open Graph Protocol（开放图谱协议）</title><link>https://rd163.visword.com/posts/open-graph-protocol/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/open-graph-protocol/</guid><description><![CDATA[<h1 id="open-graph-protocol开放图谱协议" class="headerLink">
    <a href="#open-graph-protocol%e5%bc%80%e6%94%be%e5%9b%be%e8%b0%b1%e5%8d%8f%e8%ae%ae" class="header-mark"></a>Open Graph Protocol（开放图谱协议）</h1><p>Open Graph Protocol（开放图谱协议），简称 OG 协议。它是 Facebook 在 2010 年 F8 开发者大会公布的一种网页元信息（Meta Information）标记协议，属于 Meta Tag （Meta 标签）的范畴，是一种为社交分享而生的 Meta 标签，用于标准化网页中元数据的使用，使得社交媒体得以以丰富的“图形”对象来表示共享的页面内容。它允许在 Facebook 上，其他网站能像 Facebook 内容一样具有丰富的“图形”对象，进而促进 Facebook 和其他网站之间的集成。</p>]]></description></item><item><title>跨域资源共享 CORS 详解</title><link>https://rd163.visword.com/posts/http-cors/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/http-cors/</guid><description><![CDATA[<h1 id="跨域资源共享-cors-详解" class="headerLink">
    <a href="#%e8%b7%a8%e5%9f%9f%e8%b5%84%e6%ba%90%e5%85%b1%e4%ba%ab-cors-%e8%af%a6%e8%a7%a3" class="header-mark"></a>跨域资源共享 CORS 详解</h1><h2 id="简介" class="headerLink">
    <a href="#%e7%ae%80%e4%bb%8b" class="header-mark"></a>简介</h2><p>CORS 是一个 W3C 标准，全称是“跨域资源共享”（Cross-origin resource sharing）。
CORS 允许在浏览器中运行的Web应用程序访问不同域名下的资源，以实现跨域通信。</p>]]></description></item></channel></rss>