rfc

The “MailTo” …setting a proper name on the Recipient

匿名 (未验证) 提交于 2019-12-03 03:04:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How do I set a proper name for the recipient when in HTML I want to use the "mailto" tag. Something like: mailto:"John Wayne(jw@email.com)?subject.. How do I achieve that ?? 回答1: The original standard for mailto: links, RFC 1738 , says this: A mailto URL takes the form: mailto:<rfc822-addr-spec> where <rfc822-addr-spec> is (the encoding of an) addr-spec , as specified in RFC 822 [ 6 ]. Under that definition, no proper name could be included. But the mailto: section of RFC 1738 has been superseded by RFC 2368 , which allows (among other

How to encode the filename parameter of Content-Disposition header in HTTP?

匿名 (未验证) 提交于 2019-12-03 02:12:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Web applications that want to force a resource to be downloaded rather than directly rendered in a Web browser issue a Content-Disposition header in the HTTP response of the form: Content-Disposition: attachment; filename= FILENAME The filename parameter can be used to suggest a name for the file into which the resource is downloaded by the browser. RFC 2183 (Content-Disposition), however, states in section 2.3 (The Filename Parameter) that the file name can only use US-ASCII characters: Current [RFC 2045] grammar restricts parameter values

How to encode the filename parameter of Content-Disposition header in HTTP?

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Web applications that want to force a resource to be downloaded rather than directly rendered in a Web browser issue a Content-Disposition header in the HTTP response of the form: Content-Disposition: attachment; filename= FILENAME The filename parameter can be used to suggest a name for the file into which the resource is downloaded by the browser. RFC 2183 (Content-Disposition), however, states in section 2.3 (The Filename Parameter) that the file name can only use US-ASCII characters: Current [RFC 2045] grammar restricts parameter values

What characters are allowed in an email address?

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm not asking about full email validation. I just want to know what are allowed characters in user-name and server parts of email address. This may be oversimplified, maybe email adresses can take other forms, but I don't care. I'm asking about only this simple form: user-name@server (e.g. wild.wezyr@best-server-ever.com) and allowed characters in both parts. 回答1: See RFC 5322: Internet Message Format and, to a lesser extent, RFC 5321: Simple Mail Transfer Protocol . RFC 822 also covers email addresses, but it deals mostly with its

How do I parse RFC 3339 datetimes with Java?

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to parse the date returned as a value from the HTML5 datetime input field. Try it in Opera to see an example. The date returned looks like this: 2011-05-03T11:58:01Z . I'd like to parse that into a Java Date or Calendar Object. Ideally a solution should have the following things: No external libraries (jars) Handles all acceptable RFC 3339 formats A String should be able to be easily validated to see if it is a valid RFC 3339 date 回答1: Just found that google implemented Rfc3339 parser in Google HTTP Client Library https://github

How to do unfolding RFC 822

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to write a vCard Parser and am having trouble unfolding lines. As you can see here: http://www.faqs.org/rfcs/rfc822.html look for "unfolding" it says that all the following are valid: Long string continue Long string (n* )continue Long string continue Long string (n* )continue How do I unfold this? Is there a regex for this? I am using PHP if a class has been written I will use that :) 回答1: You could use this to remove those foldings: $output = preg_replace('/\r\n(?:[ \t]+)/', '', $input); 文章来源: How to do unfolding RFC 822

How to write and propose a RFC?

[亡魂溺海] 提交于 2019-12-03 01:34:07
I found that IMAPv4 has a shortcoming: It forces users to download whole body (text/html + attachments). How to write and propose a RFC to address the issue? Please kindly share if you had experience of previously writing technical documents, proposals, especially RFCs. Thank you in advance. There's actually an RFC for that: RFC 7322 - RFC Style Guide . The responses by Jörg W Mittag and Darin Dimitrov are perfectly correct but they forget to add that writing a RFC and having it adopted is a long process which requires time, dedication, a hard technical work and a lot of social interactions.

HTTP状态码

◇◆丶佛笑我妖孽 提交于 2019-12-03 01:31:17
状态码 含义 100 客户端应当继续发送请求。这个临时响应是用来通知客户端它的部分请求已经被服务器接收,且仍未被拒绝。客户端应当继续发送请求的剩余部分,或者如果请求已经完成,忽略这个响应。服务器必须在请求完成后向客户端发送一个最终响应。 101 服务器已经理解了客户端的请求,并将通过Upgrade 消息头通知客户端采用不同的协议来完成这个请求。在发送完这个响应最后的空行后,服务器将会切换到在Upgrade 消息头中定义的那些协议。   只有在切换新的协议更有好处的时候才应该采取类似措施。例如,切换到新的HTTP 版本比旧版本更有优势,或者切换到一个实时且同步的协议以传送利用此类特性的资源。 102 由WebDAV(RFC 2518)扩展的状态码,代表处理将被继续执行。 200 请求已成功,请求所希望的响应头或数据体将随此响应返回。 201 请求已经被实现,而且有一个新的资源已经依据请求的需要而建立,且其 URI 已经随Location 头信息返回。假如需要的资源无法及时建立的话,应当返回 '202 Accepted'。 202 服务器已接受请求,但尚未处理。正如它可能被拒绝一样,最终该请求可能会也可能不会被执行。在异步操作的场合下,没有比发送这个状态码更方便的做法了。   返回202状态码的响应的目的是允许服务器接受其他过程的请求(例如某个每天只执行一次的基于批处理的操作)

TCP Sequence Number

China☆狼群 提交于 2019-12-03 01:12:00
I'm trying to understand how the sequence numbers of the TCP header are generated. In some places I read that it is the "index of the first byte in the packet" ( link here ), on some other sites it is a random 32bit generated number that is then incremented. I don't really know which is which, so here are some questions: How is the initial sequence number generated? (Please provide an RFC number if there is one) How is it incremented? How is the secret key generated? I read some of the RFCs like RFC 6528 , RFC 793 , and RFC 1948 but I can't seem to understand which one is actually implemented.

iCalendar creation: RFC 5546 explanation

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am facing several issues related to the creation of an ICS file which has to be compatible with several clients, especially iOS , Gmail , Outlook , Android and Windows Phone . Googling around, I found out the proposed standard from 2009, aka RFC5546 . I read through this document and found a point which is very interesting and could potentially solve my issue. Section Methods for VEVENT Calendar Components explains the distinctions between methods REQUEST and PUBLISH. But, there are a couple of points which are not really clear to me: What