使用POST的文本链接? [英] Text-links using POST ?

查看:53
本文介绍了使用POST的文本链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将开始为个人/朋友开发一个新网站

使用,可以通过网络上的其他人访问。当我遇到一个想法的时候,我正坐在那里思考页面等的设计......


....为什么要显示访客负载只是因为我使用A-href类型

链接?


有没有办法创建一个文本链接,它将使用POST请求页面

而不是GET?


也许来自表格或使用CSS来修改链接的行为?


(请回复群组 - 电子邮件无效)

解决方案



Trammel写道:


...为什么只是因为我使用A-href类型

链接来显示访客的垃圾负载?



为什么呢。如果你不想要垃圾,不要包括垃圾


切换到POST而不是GET听起来像是一个毫无意义的想法。如果GET

真的被打破了,那么你不觉得我们都会停止使用它,

然后解决它吗?


"特拉梅尔" < Me@Server.comwrites:


我即将开始为个人/朋友开发一个新网站

使用可能可以被网络上的其他人访问。当我遇到一个想法的时候,我正坐在那里思考页面等的设计......


...为什么要显示访客的负载垃圾只是因为我使用A-href类型

链接?


有没有办法创建一个文本链接,它将使用POST请求页面

而不是GET?


也许从表单中或使用CSS来修改链接的行为?



使用Javascript可行,有些不可靠。 *但是*,那里有
是更好的方法来做这种事情(特别是因为

POST检索的页面不能被加入书签,无法检索通过搜索

引擎,在重新加载时生成浏览器警告,并为您实际想要获取的内容提供其他

不良属性)


您真正要问的是:我可以为GET寻找更整洁的网址吗?

答案是肯定的 - 要么通过修改网页来采取

更好的网址,或者使用mod_rewrite在一个漂亮的和一个丑陋的形式之间进行转换[1]。


你能否提供一些关于页面,以及您目前获得的
网址的类型?最重要的是,如果开发还远远超过
,你能给我们一个URL吗?如果没有,那么

的URL怎么样呢?


[1]例如:

RewriteRule ^([a -zA-Z0-9 \ - ] +)/([0-9] +)/.* /?category =


1& article =


Hi, Im just about to start developing a new website for personal / friend
use that may be accessed by other people all over the web. I was sitting
thinking through designs for the pages, etc when I came across a thought....

....why show the visitor loads of junk just because Im using A-href type
links?

Is there a way to create a text-link that will request a page using POST
instead of GET?

Maybe from within a form or using CSS to modify the behavior of links?

(Please reply to group only - email invalid)

解决方案


Trammel wrote:

...why show the visitor loads of junk just because Im using A-href type
links?

Why indeed. If you don''t want junk, don''t include junk

Switching to POST instead of GET sounds like a pointless idea. If GET
really was this broken, then don''t you think we''d all stop using it,
then fix it ?


"Trammel" <Me@Server.comwrites:

Hi, Im just about to start developing a new website for personal / friend
use that may be accessed by other people all over the web. I was sitting
thinking through designs for the pages, etc when I came across a thought....

...why show the visitor loads of junk just because Im using A-href type
links?

Is there a way to create a text-link that will request a page using POST
instead of GET?

Maybe from within a form or using CSS to modify the behavior of links?

It''s do-able, somewhat unreliably, with Javascript. *However*, there
are better ways to do this sort of thing (especially since
POST-retrieved pages can''t be bookmarked, can''t be retrieved by search
engines, generate browser warnings on reload, and have other
undesirable properties for things that you actually want to GET)

What you''re really asking is: Can I have neater looking URLs for GET?
The answer is yes - either by modifying the web pages a bit to take
better URLs, or by using mod_rewrite to convert between a nice and an
ugly form [1].

Can you give a bit more details about the page, and about the sort of
URLs you''ve currently got? Best of all, if development''s far enough
ahead, can you give us a URL for it? If not, what about a URL for
something similar?

[1] For example:
RewriteRule ^([a-zA-Z0-9\ -]+)/([0-9]+)/.* /?category=


1&article=


这篇关于使用POST的文本链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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