curl w3c-markup-validator 本地速度很慢,如何使其更快?
我使用这样的curl:
curl -s -F“uploaded_file=@/path_to_file;type=text/html”-F output=soap12 http://localhost/w3c-markup-validator/check >text.xml && xsltproc script/guilbep_soap_w3c.xsl text.xml
xsltproc 很快;但卷曲不是。
这是因为 w3c-markup-validator 是本地的吗?或者来自 w3c-markup-validator 本身?或者我可以从curl 做点什么?
我想测试超过 6000 个 xhtml.. 如果我必须在每个之间等待 2 秒.. 超过 1 小时.. 我可以等待.. 但我不喜欢它。
谢谢!!
I am using curl like this:
curl -s -F "uploaded_file=@/path_to_file;type=text/html" -F output=soap12 http://localhost/w3c-markup-validator/check >text.xml && xsltproc script/guilbep_soap_w3c.xsl text.xml
xsltproc is fast; but curl is not.
does it come from the fact that w3c-markup-validator is local? or from w3c-markup-validator itself? Or from curl and I can do something?
I would like to test more than 6000 xhtml.. and if I have to wait 2 sec between each .. more than 1 hour.. I can wait.. but I don't like it.
Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信这2秒的延迟很可能是因为你通过http传输文件。是否可以在本地运行验证器,而不将其发送到网络服务器?
I believe that it is quite probably that the 2 second delay is because you transfer the file over http. Is it possible to run the validator locally, without sending it to a webserver?