cocoa - NSURL's parameterString confusion with use of ';' vs '&' -


I want to use to pass the parameters of the URL passed, it says that the URL should be consistent, But now wondering what we do?!? We use something like this:

http: // server / path / query? Property1 = value1 and property2 = value2

But RFC 1808 does not mention any of the ampersands ( & amp; ) as a valid parameter separator (less Less than the way I read it). This suggests a semicolon (; ) probably because it was made in 1995? Whether & amp; has ; ? If so, then anyone can verify that the parameter string of NSURL is also & amp; As the delimiter?

What is "right" before we dig a big hole? The correct syntax is as follows:

RFC 1808 (2.1. URL syntactic component):

  & lt; Scheme & gt;: // & lt; Net_loc & gt; / & Lt; Path & gt; & Lt; Parameters & gt; & Lt; Query & gt; # & Lt; Piece & gt;  

It states that according to Section 3.3 of RFC 1738, query information has been formatted, which tells us:

"Within the path and search component components, "/", ";

/ Query

and the query is:

  property1 = value1 and property2 = value2  

which is not included In the actual character "& quot; as a separator in the query string, the URL is not derived from RFC:

" The form data is a stream of name & amp; Add value described by character. "


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -