views:

42

answers:

1

I'm tring to use the NSURL class's parameterString message to return the string from the following url:

http://www.host.com/Api/Service.svc/GetStuff?param=thisIsTheParamValue

I keep getting nil for the parameterString. Does that url not conform to the standards that Apple uses?

+1  A: 

The URL doesn't conform to the standard NSURL uses for parameterString. NSURL uses RFC 1808 standard, which defines the parameter string as ";" params. Use the query message instead to get the string after the '?'.

dbarker
That was it, thanks dbarker.
Tom