在线RFC

本站提供RFC文档的中文版、英文版的在线阅读及下载、打包下载等。
中文RFC文档列表:点击查看 (说明:中文RFC文档是UTF8编码)
英文RFC文档列表:点击查看 from:http://www.rfc-editor.org/rfc-index.html
中文RFC打包下载:(rfc中文文档 gb2312版本 打包下载)(rfc中文文档 utf8版本 打包下载)
英文RFC打包下载:(rfc英文版本打包下载)
中文RFC wiki:中文RFC wiki
英文RFC wiki:英文RFC wiki
英文介绍:
A Request for Comments (RFC) is a publication of the Internet Engineering Task Force (IETF) and the Internet Society, the principal technical development and standards-setting bodies for the Internet.
An RFC is authored by engineers and computer scientists in the form of a memorandum describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems. It is submitted either for peer review or simply to convey new concepts, information, or (occasionally) engineering humor. The IETF adopts some of the proposals published as RFCs as Internet standards.
Request For Comments documents were invented by Steve Crocker in 1969 to help record unofficial notes on the development of the ARPANET. They have since become the official record for Internet specifications, protocols, procedures, and events.[1]

中文介绍:
征求修正意见书(英语:Request For Comments,缩写为 RFC),是由互联网工程任务组(IETF)发布的一系列备忘录。文件收集了有关互联网相关信息,以及UNIX和互联网社区的软件文件,以编号排定。目前RFC文件是由互联网协会(ISOC)赞助发布。
RFC始于1969年,由斯蒂芬·克罗克用来记录有关ARPANET开发的非正式文档,最终演变为用来记录互联网规范、协议、过程等的标准文件。基本的互联网通信协定都有在RFC文件内详细说明。RFC文件还额外加入许多的论题在标准内,例如对于互联网新开发的协定及发展中所有的记录。

运行如下perl脚本,也可以从chinaunix下载。下面脚本需要提供一个url列表,点击这里下载RFC中文文档连接列表。一行一个。
下载中文RFC文档脚本
需要LWP插件,可以通过ppm安装。

#!/usr/bin/perl
use LWP;
use LWP::Simple;
use LWP::UserAgent;

my $path = "/root/rfc/";

sub writefile{
	my ($dest_file) = shift;
	my ($content) = shift;
	print "dest_file : $dest_file\n";
	open(F,">",$dest_file);
	print F $content;
	close(F);
}
my $browser = LWP::UserAgent->new();
$browser->timeout(10000);
$browser->agent("Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)");

open( rfc, "<", "/root/rfccn.txt" );
while ( my $line = <rfc> ) {
	print $line;
	my $linenum  = 0;
	my $trycount = 0;
  REDO:
	if ( $trycount > 3 ) {
		goto GONEXT;
	}
	my $c_url = $line;
	print "processing : $c_url\n";
	my $resp = $browser->get($c_url);

	#sleep(1);
	print "ok\t" if $resp->is_success();
	print "status line : ", $resp->status_line(), "\n";
	if ( $resp->is_success() ) {
		#print "content:",       $resp->content(),     "\n";
		my $filename = substr($line,37);
		print "filename:",$filename;
		writefile( "$path"."$filename", $resp->content() );
	}
	else {
		print " fail!";
		$trycount++;
		goto REDO;
	}
	GONEXT:
	;
}
close(rfc);

英文版 RFC 下载脚本
在中文基础上稍微改动一下即可能用。

for(my $i = 1;$i<6500;$i++){
	my $c_url = $url."$i";
	print "processing : $c_url\t";
	my $resp = $browser->get($c_url);
	print "ok\t" if $resp->is_success();
	if($resp->is_success()){
		print "status line : ",$resp->status_line(),"\n";
		print "content:",$resp->content(),"\n";
		writefile($path."$i.html",$resp->content());
	}else{
		print " fail!";
	}
	
	
}

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>