Passing a String from the URL
The next step in the example demonstrates invoking the command RegisterUser
on the server MOOSE
. The command RegisterUser
is the name of a member function in the server DLL SURVEY.DLL
. The client invokes RegisterUser
from the following URL:
http://moose/survey/survey.dll?RegisterUser?Richard
This URL causes the member function RegisterUser
to be called with pstrParameter pointing at the string “Richard”.
If Richard wanted to register his middle initial and last name too, the URL would look like this:
http://moose/survey/survey.dll?RegisterUser?Richard+M%2E+Jones
The string contains multiple words and punctuation, so the server expands the normal plus sign and percent sign URL character escapes before passing the string to the parse map. The character escapes are automatically filled into the URL by the browser and are not specific to ISAPI. For more information about the URL character escapes, see the Web site:
http://www.internic.net/rfc/rfc1738.txt