Re: Parameter strings in URLs
Re: Parameter strings in URLs
- Subject: Re: Parameter strings in URLs
- From: Bjoern Kriews <email@hidden>
- Date: Mon, 8 Mar 2004 09:24:56 +0100
On 07.03.2004, at 20:17, Ken Tozier wrote:
I'm writing a category for "NSURLRequest" as part of a WebView policy
delegate to handle parameter strings in <a href="..."> tags but am
having some difficulty interpreting the RFC 1808 spec mentioned in the
documentation. Could someone give a few examples of how to tack on
parameters to a URL?
My best interpretation of the RFC 1808 spec would yield something like:
<a href="http://bla/bla/bla;key1="bobo";key2="ned";key3="gwen"?<some
query here>>
Possible parameter formats:
Usual formats:
http://localhost/cgi-bin/blah?keya=valuea&keyb=valueb
http://localhost/cgi-bin/blah?keya=valuea;keyb=valueb
The "&" variant is more common, you have to consider what the target
expects - many CGIs won't accept both.
For a single isindex field (seldom in use):
http://localhost/cgi-bin/blah?xxx
You also have to employ URL-encoding, please read the relevant RFCs,
RFC2616 (HTTP 1.1) is a good starting point, it references most other
interesting ones.
Regards, Bjoern
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.