rfc

What does “clock sequence” mean?

与世无争的帅哥 提交于 2019-12-11 04:30:59
问题 RFC 4122 ( A Universally Unique IDentifier (UUID) URN Namespace ) uses the term "clock sequence": 4.1.5. Clock Sequence For UUID version 1, the clock sequence is used to help avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes. If the clock is set backwards, or might have been set backwards (e.g., while the system was powered off), and the UUID generator can not be sure that no UUIDs were generated with timestamps larger than the value to which

Does JSON 'officially' Support Conversion of Native Types?

旧时模样 提交于 2019-12-11 01:18:03
问题 In PHP, you can use json_encode to encode an object as a json string. $string = json_encode($some_object); However, PHP has the standard slew of datatypes which are not considered objects (ints, strings, etc.) If you pass in a string to json_encode , this returns a string that contains a javascript statement that could be used to define the string. In less awkward phrasing, this echo json_encode("Hello world, please don't " . '"' . "misuse quote's for emphasis " . "or possessive apostrophes'

适用于PDF文件的MIME媒体类型

依然范特西╮ 提交于 2019-12-10 19:34:25
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 使用PDF时,我遇到了MIME类型 application/pdf 和 application/x-pdf 等。 这两种类型之间是否存在差异,如果是这样,它是什么? 一个比另一个更受欢迎吗? 我正在开发一个必须提供大量PDF的网络应用程序,我想以正确的方式进行,如果有的话。 #1楼 标准MIME类型是 application/pdf 。 该分配在 RFC 3778中 定义 ,即应用程序/ pdf媒体类型 ,从 MIME媒体类型注册表 引用。 MIME类型由标准机构 - 互联网号码分配机构 (IANA)控制。 这是管理根名称服务器和IP地址空间的组织。 x-pdf 的使用早于PDF的MIME类型的标准化。 x- namespace中的MIME类型被认为是实验性的,就像在 vnd. 命名空间被视为特定于供应商。 x-pdf 可能用于与旧软件兼容。 #2楼 来自维基百科媒体类型, 媒体类型由类型,子类型和可选参数组成。 例如,HTML文件可能被指定为text / html; 字符集= UTF-8。 媒体类型由顶级类型名称和子类型名称组成,其进一步构造为所谓的“树”。 top-level type name / subtype name [ ; parameters ] top-level type name / [

Is it right to say that paths are represented as URI while web-addresses are represented as URL?

北城余情 提交于 2019-12-10 12:17:58
问题 I am confused by Apple's documentation about the NSURL class. In NSURL, they say the following: NSURL understands URLs in style of RFC 1808, 1738 und 2732 NSURL understands URIs in style of RFC 2396 Also they say that the RFC 2396 URI are paths. Now what's the difference here? Isn't a path also an URL? I mean, it's an location or not? 回答1: Both URLs and URIs identify resources (which are anything). However, a URL is the term used for an identifier that specifies how to locate the resource.

sortf rfc dates using bash

廉价感情. 提交于 2019-12-10 11:26:38
问题 How can I sort a text file which contains rfc dates? Eg.: Sat, 1 Aug 2015 01:48:56 +0200 Sat, 1 Aug 2015 01:25:40 +0200 Sun, 19 Jul 2015 14:47:29 -0300 Sat, 13 Sep 2014 12:13:51 -0300 Thanks! 回答1: Similar idea to @meuh, but a single call to perl instead of calling date once for each line: perl -MTime::Piece -lne ' push @dates, [Time::Piece->strptime($_, "%a, %e %b %Y %T %z"), $_] } { print join "\n", map {$_->[1]} sort {$a->[0] <=> $b->[0]} @dates ' dates.txt Sat, 13 Sep 2014 12:13:51 -0300

Is there a standard and an implementation for Icalendar event RSVP

我怕爱的太早我们不能终老 提交于 2019-12-10 11:18:09
问题 The summary is that I am now implementing an event confirmation system and can't find the right format for the ICalendar replies. Therefore I wonder if there is an example out there of complete REPLY message and maybe a PHP library that would wrap it all? Now for the details, we get external emails including event invitations asking for RSVP. Here is an excerpt of the iCal file: ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="'user@company.com'":MAILTO:user@company.com

Leading underscores in an email address?

独自空忆成欢 提交于 2019-12-10 02:06:43
问题 What RFC would I refer to in order to find out if a leading underscore in the local part of an email address is acceptable? Example: _johndoe@hotmail.com Of course, this question can also apply to any leading special character. I found this line in Wikipedia, but couldn't find any reference within the RFC itself. Did I miss something here? Local part The local-part of the email address may use any of these ASCII characters RFC 5322 Section 3.2.3: 回答1: Quoting RFC5322. Section 3.4.1 says: An

深入理解HTML协议

和自甴很熟 提交于 2019-12-10 02:00:39
http 协议 学 习系列 1. 基础概念篇 1.1 介绍 HTTP 是 Hyper Text Transfer Protocol (超文本传输协议)的缩写。它的发展是万维网协会( World Wide Web Consortium )和 Internet 工作小组 IETF ( Internet Engineering Task Force )合作的结果,(他们)最终发布了一系 列的 RFC , RFC 1945 定义了 HTTP/1.0 版本。其中最著名的就是 RFC 2616 。 RFC 2616 定义了今天普遍使用的一个版本 ——HTTP 1.1 。 HTTP 协议( HyperText Transfer Protocol ,超文本传输协议)是用于从 WWW 服务器传输超文本到本地浏览器的传送协议。它可以使浏览器更加高效,使网络传输减少。它不仅保证计算 机正确快速地传输超文本文档,还确定传输文档中的哪一部分,以及哪部分内容首先显示 ( 如文本先于图形 ) 等。 HTTP 是一个应用层协议,由请求和响应构成,是一个标准的客户端服 务器模型。 HTTP 是一个无状态的协议。 1.2 在 TCP/IP 协议栈中的位置 HTTP 协议通常承载于 TCP 协 议之上,有时也承载于 TLS 或 SSL 协议层之上,这个时候,就成了我们常说的 HTTPS 。如下图所示: 默认 HTTP

Why does SOCKS5 require to relay UDP over UDP?

半城伤御伤魂 提交于 2019-12-09 04:59:38
问题 The SOCKS5 protocol, described by RFC1928 provides support for UDP. To summarize, a client wishing to relay UDP packets through a SOCKS5 server must, at least: open a TCP connection to the SOCKS5 server; send a UDP ASSOCIATE request (cf section 4); receive from the server the address and port where it must send UDP packets to be relayed; send datagrams (UDP) to that address, encapsulated with some headers (cf section 7). Here are some relevant quotations, from section 6: A UDP association

multipart/form-data, what is the default charset for fields?

自闭症网瘾萝莉.ら 提交于 2019-12-09 02:40:00
问题 what is the default encoding one should use to decode multipart/form-data if no charset is given? RFC2388 states: 4.5 Charset of text in form data Each part of a multipart/form-data is supposed to have a content- type. In the case where a field element is text, the charset parameter for the text indicates the character encoding used. For example, a form with a text field in which a user typed 'Joe owes <eu>100' where <eu> is the Euro symbol might have form data returned as: --AaB03x content