mgkit.net.utils module¶
Utility functions for the network package
-
mgkit.net.utils.
url_open
(url, data=None, compress=True, agent=None)¶ Utility function that compresses the request and add the user agent header if supplied.
Parameters: Returns: the response handle
-
mgkit.net.utils.
url_read
(url, data=None, compress=True, agent=None)¶ Utility function that compresses the request and add the user agent header if supplied.
Wrapper of
url_open()
which reads the full responseParameters: Returns: the response data