Class Http

Description

Http 工具类

提供一系列的Http方法

Located in /ORG/Net/Http.class.php (line 25)

Base
   |
   --Http
Method Summary
static void download (string $filename, [string $showname = ''], [string $content = ''], [integer $expire = 180])
static string get_header_info ([ $header = ''], [ $echo = true])
static void send_http_status ( $code, int $num)
Methods
static download (line 48)

下载文件

可以指定下载显示的文件名,并自动发送相应的Header信息 如果指定了content参数,则下载该参数的内容

  • throws: ThinkExecption
  • access: public
static void download (string $filename, [string $showname = ''], [string $content = ''], [integer $expire = 180])
  • string $filename: 下载文件名
  • string $showname: 下载显示的文件名
  • string $content: 下载的内容
  • integer $expire: 下载内容浏览器缓存时间
static get_header_info (line 94)

显示HTTP Header 信息

static string get_header_info ([ $header = ''], [ $echo = true])
  • $header
  • $echo
static send_http_status (line 119)

HTTP Protocol defined status codes

static void send_http_status ( $code, int $num)
  • int $num
  • $code

Documentation generated on Thu, 27 Mar 2008 08:20:44 +0000 by 塞北的雪