This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
class HtmlDownloader(object): | |
def download(self, url): | |
if url is None: | |
print 'url is None' | |
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface LDHttpTool : NSObject | |
+ (void)GET:(NSString *)url parameters:(id)parameters downloadProgress:(void(^)(NSProgress *downloadProgress))progress success:(void(^)(NSURLSessionDataTask *task, id responseObject))success failure:(void(^)(NSURLSessionDataTask *task, NSError *error))failure; | |
+ (void)POST:(NSString *)url parameters:(id)parameters downloadProgress:(void(^)(NSProgress *downloadProgress))progress success:(void(^)(NSURLSessionDataTask *task, id responseObject))success failure:(void(^)(NSURLSessionDataTask *task, NSError *error))failure; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"sig":"67248599c696d18f9ff51d0db6e23ed0aa240b71e774b93c7a99d958c7d8ec2fabbf9406bcfd3672b1f2202cd495f3067381f4502b94c4e0963b224ad51e18170","msghash":"05c1d9068aa29be1f7f3a91b5f51657e6aa47504435c1933e7aa011a38f080ec"} |