We must close the HTTP connection after calling the getresponse method.
Otherwise, all the connections would still alive and this is not a good behavior. Once we need to close the connections it is not possible to return the content of getresponse method, the method read would return an empty string instead of the correct data. And also the data returned by shadir is a json content, to reach a better usage of libnetworkcache the data returned must be loaded by json library, in other words, it must be a list.
Showing with 36 additions and 25 deletions