Click here to get back home

Text-links using POST ?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Text-links using POST ? Trammel 09-08-2006
Get Chitika Premium
Posted by Trammel on September 8, 2006, 1:17 pm
Please log in for more thread options


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)



Posted by Andy Dingley on September 8, 2006, 1:23 pm
Please log in for more thread options



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 ?


Posted by Chris Morris on September 8, 2006, 1:33 pm
Please log in for more thread options


> 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=$2 [PT]
rewrites a requested URL of the form
/articles/101/writing_HTML
to a server-processed URL of
/?category=articles&article=101

--
Chris

Posted by Trammel on September 10, 2006, 9:26 pm
Please log in for more thread options


> > 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?
>
[snip]

What I was after is preciesly some of the "down sides" that you listed.

I was thinking of a PHP based index page that when bookmarked anywhere would
hold no data and always return to "home" by default. It would also never
change the address from http://www.mysite.com/ in the address section of the
browser by using posts for page requests instead of gets.

Currently the site design loads pages by a GET like: /index.php?p=blah
This leaves the address bar reading: http://www.mysite.com/index.php?p=blah

I dont care if the bookmarked site/page always returns to "home" by default
as this would actually be best seeing as the updates & news are displayed
there.

I dont want to use frames, iframes or flash, etc to stop the address bar
changing though as I wanted something that will be useable in almost all (if
not all) browsers...
...any ideas?



Posted by Trammel on September 10, 2006, 9:45 pm
Please log in for more thread options


> > > 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?
> >
> [snip]
>
> What I was after is preciesly some of the "down sides" that you listed.
>
> I was thinking of a PHP based index page that when bookmarked anywhere
would
> hold no data and always return to "home" by default. It would also never
> change the address from http://www.mysite.com/ in the address section of
the
> browser by using posts for page requests instead of gets.
>
> Currently the site design loads pages by a GET like: /index.php?p=blah
> This leaves the address bar reading:
http://www.mysite.com/index.php?p=blah
>
> I dont care if the bookmarked site/page always returns to "home" by
default
> as this would actually be best seeing as the updates & news are displayed
> there.
>
> I dont want to use frames, iframes or flash, etc to stop the address bar
> changing though as I wanted something that will be useable in almost all
(if
> not all) browsers...
> ...any ideas?

...without using Javascript (as it could be turned off)...
...and without using frames as you would still see the parameters in status
bar.



Similar ThreadsPosted
POST validation October 6, 2005, 2:45 pm
Form post April 18, 2008, 7:16 pm
Post Meta World? September 2, 2005, 3:12 am
making use POST method? February 11, 2006, 7:37 am
IE form post oddness September 13, 2006, 4:14 pm
Form POST problem May 14, 2007, 2:49 am
Form POST problem May 15, 2007, 2:53 am
form post never submits - no errors of any kind September 28, 2004, 5:07 pm
[Q] Using the POST Method with HTML Anchor Tags March 23, 2005, 2:52 pm
[x-post] i found a good layout, but can't reproduce it September 22, 2005, 4:47 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap