Next: , Previous: NetClients.URL class-instance creation, Up: NetClients.URL


1.115.3 NetClients.URL: accessing

decodedFields
Convert the form fields to a Dictionary, answer nil if no question mark is found in the URL.


decodedFile
Answer the file part of the URL, decoding it from x-www-form-urlencoded format.


decodedFragment
Answer the fragment part of the URL, decoding it from x-www-form-urlencoded format.


fragment
Answer the fragment part of the URL, leaving it in x-www-form-urlencoded format.


fragment: aString
Set the fragment part of the URL, which should be in x-www-form-urlencoded format.


fullRequestString
Answer the full request string corresponding to the URL. This is how the URL would be printed in the address bar of a web browser, except that the query data is printed even if it is to be sent through a POST request.


hasPostData
Answer whether the URL has a query part but is actually for an HTTP POST request and not really part of the URL (as it would be for the HTTP GET request).


hasPostData: aBoolean
Set whether the query part of the URL is actually the data for an HTTP POST request and not really part of the URL (as it would be for the HTTP GET request).


host
Answer the host part of the URL.


host: aString
Set the host part of the URL to aString.


newsGroup
If the receiver is an nntp url, return the news group.


password
Answer the password part of the URL.


password: aString
Set the password part of the URL to aString.


path
Answer the path part of the URL.


path: aString
Set the path part of the URL to aString.


port
Answer the port number part of the URL.


port: anInteger
Set the port number part of the URL to anInteger.


postData
Answer whether the URL has a query part and it is meant for an HTTP POST request, answer it. Else answer nil.


postData: aString
Associate to the URL some data that is meant to be sent through an HTTP POST request, answer it.


query
Answer the query data associated to the URL.


query: aString
Set the query data associated to the URL to aString.


requestString
Answer the URL as it would be sent in an HTTP stream (that is, the path and the query data, the latter only if it is to be sent with an HTTP POST request).


scheme
Answer the URL's scheme.


scheme: aString
Set the URL's scheme to be aString.


username
Answer the username part of the URL.


username: aString
Set the username part of the URL to aString.