add test case for getproxyforurl in windows and fix bugs of remote-img

add test case for the method getproxyforurl under windows and fix the crash of remote-img in windows