• 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: Apple, any slight update or estimation on WO 5.3.1, Please ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple, any slight update or estimation on WO 5.3.1, Please ??


  • Subject: Re: Apple, any slight update or estimation on WO 5.3.1, Please ??
  • From: Dev WO <email@hidden>
  • Date: Wed, 14 Sep 2005 19:38:05 +0200

Hi David


I'm not sure I understand (or agree with) what Xavier is saying here.

.../wa/actionName?foo=bar&foobar=doo

is different to

../wa/actionName?foo=bar&amp;foobar=doo.

In the first case there are two parameters (or form values), one called foo and the other called foobar
with values "bar" and "doo". In the second case there is one parameter "foo" with a value "bar&foobar=doo".


If you URL escape the ampersands between parameters then you are effectively making them all one
value that gets associated with the first one.


Did I miss something?


Yes, according to rfc's when the -server- sends HTML to the client then both examples are the same but the second one is 'more correct' according to html spec. But when the client sends such a request back to the server then the client should do this:


hyperlink's href attribute reads:

href="/cgi-bin/WebObjects/myApp.woa/wa/login? username=david&amp;password=teran"

is converted -before- sending the request to the server to

href="/cgi-bin/WebObjects/myApp.woa/wa/login? username=david&password=teran"

this is how i read the definitions. So if one wants to send something like this to the server:

href="/cgi-bin/WebObjects/myApp.woa/wa/login? usernameAndPassword=david&amp;teran"

one (WebObjects) would have send this as html fragment to the client:

href="/cgi-bin/WebObjects/myApp.woa/wa/login? username=david&amp;amp;password=teran"

Hm well, i have no idea if this really works but i will make a test this night, just to check what a browser sends to the server...

regards Davi

In fact if you look at an hyperlink with either & or &amp; it will work the same, but the browser expect a &amp; instead in hyperlink because it refers to a URI/URL so it's not "passing parameters".
In a form it's & because it's passing parameters in the request, it's not written in the (X)HTML code.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Nathan Walker <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Chuck Hill <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Nico Rossi <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: David Teran <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Dev WO <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: David Teran <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Dev WO <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: David Teran <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: Alan Ward <email@hidden>)
 >Re: Apple, any slight update or estimation on WO 5.3.1, Please ?? (From: David Teran <email@hidden>)

  • Prev by Date: Basic newbie questions
  • Next by Date: Re: Apple, any slight update or estimation on WO 5.3.1, Please ??
  • Previous by thread: Re: Apple, any slight update or estimation on WO 5.3.1, Please ??
  • Next by thread: Re: Apple, any slight update or estimation on WO 5.3.1, Please ??
  • Index(es):
    • Date
    • Thread