Added test code of fsockopen