请求页面的最快方式? [英] Quickest way to Request a Page?

查看:60
本文介绍了请求页面的最快方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如:POST,GET www.thescripts.com等


这样做的最快方法是什么?由于我正在制作的程序依赖于速度,所以最快的方式会有很多帮助。


我在VB6中尝试了一个等价物(不要问为什么),它在8mbps的连接上做了大约500ms。


有没有可以达到这个速度或更快的速度?

解决方案

< blockquote> http://search.cpan.org/search?query=lwptut


- 米勒


没有脚本会加快你的连接速度。


加快速度的唯一方法是编写304代码。响应(意思是页面内容没有改变)。您可以通过使用Last-Modified和ETag标头来完成此操作。这里有大量的文档,所以请开始阅读lwp。


- 米勒


For example: POST, GET www.thescripts.com etc

What''s the fastest way of doing this? As the program i''m making relys on speed, so the fastest way would help alot.

I have tried an equivalent in VB6 (don''t ask why), and it''s doing around 500ms on a 8mbps connection.

Is there one that can go at that speed or faster?

解决方案

http://search.cpan.org/search?query=lwptut

- Miller


no script will speed up your connection speed.


The only way to speed things up is to code for a "304" response (meaning page content hasn''t changed). You do this by working with the Last-Modified and ETag headers. There''s plenty of documentation available for this, so just start reading up on lwp.

- Miller


这篇关于请求页面的最快方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆