第三方苹果开发库之ASIHTTPRequest

来源:互联网 发布:hive sql select into 编辑:程序博客网 时间:2024/05/18 15:55

第三方苹果开发库之ASIHTTPRequest


  1. ASIHttpRequest库简介、配置和安装
  2. ASIHttpRequest-创建和执行request
  3. ASIHttpRequest-发送数据
  4. ASIHTTPRequest-下载数据
  5. ASIHTTPRequest-进度追踪
  6. ASIHTTPRequest-身份验证
  7. ASIHTTPRequest-HTTP授权-流程图
  8. ASIHTTPRequest-Cookie的使用
  9. ASIHTTPRequest-数据压缩
  10. ASIHTTPRequest-断点续传(下载)
  11. ASIHTTPRequest-直接读取磁盘数据流的请求体
  12. ASIHTTPRequest-使用downloadcache
  13. ASIHTTPRequest-流量控制
  14. ASIHTTPRequest-客户端证书支持
  15. ASIHTTPRequest-使用代理连接
  16. ASIHTTPRequest-其他特性
  17. ASIHTTPRequest-Debug选项

相关网络资料:

  1. 升级到iOS5后ASIHttpRequest库问题及解决方法 解决iOS5网络代理弹出框问题(备用地址:http://www.cocoachina.com/iphonedev/sdk/2011/1021/3403.html)
  2. 来自:http://www.dreamingwish.com/dream-2011/apples-third-party-development-libraries-asihttprequest.html

     

    ASIHttpRequest库简介、配置和安装

     

    使用ASIHTTPRequest可以很方便的进行一下操作:

    • 同步/异步方式下载数据
    • 定义下载队列,让队列中的任务按指定的并发数来下载(队列下载必须是异步的)
    • 提交表单,文件上传
    • 处理cookie
    • 设置代理
    • 上下载进度条
    • 重定向处理
    • 请求与响应的GZIP
    • 验证与授权

    等等,只要跟HTTP有关,只有你想不到的,没有她做不到的~

    配置方法:

    • ASIHTTPRequestConfig.h
    • ASIHTTPRequestDelegate.h
    • ASIProgressDelegate.h
    • ASICacheDelegate.h
    • ASIHTTPRequest.h
    • ASIHTTPRequest.m
    • ASIDataCompressor.h
    • ASIDataCompressor.m
    • ASIDataDecompressor.h
    • ASIDataDecompressor.m
    • ASIFormDataRequest.h
    • ASIInputStream.h
    • ASIInputStream.m
    • ASIFormDataRequest.m
    • ASINetworkQueue.h
    • ASINetworkQueue.m
    • ASIDownloadCache.h
    • ASIDownloadCache.m

    iPhone 工程还需要:

    • ASIAuthenticationDialog.h
    • ASIAuthenticationDialog.m
    • Reachability.h (在External/Reachability 目录下)
    • Reachability.m (在 External/Reachability 目录下)

    库引用:

    CFNetwork.framework

    SystemConfiguration.framework

    MobileCoreServices.framework

    CoreGraphics.framework

    和libz.dylib

    另外,还需要libxml2.dylib(libxml2还需要设置连接选项-lxml2和头文件搜索路径/usr/include/libxml2)