• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Parameter strings in URLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Parameter strings in URLs (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: Using NSView as a template
  • Next by Date: NSNotification filtering problem
  • Previous by thread: Re: Parameter strings in URLs
  • Next by thread: Looking for tips on debugging with OCUnit
  • Index(es):
    • Date
    • Thread