| 订阅 | 在线投稿
分享
 
 
当前位置: 王朝网络 >> other >> curl han shu de zhong wen dang an
 

curl han shu de zhong wen dang an

2008-12-28 07:39:35 编辑來源:互联网 评论
 
本文为【curl函数的中文档案】的拼音翻译版
  curl_setopt — wei CURL tiao yong she zhi yi ge xuan xiang
  miao shu
  bool curl_setopt (int ch, string option, mixed value)
  curl_setopt() han shu jiang wei yi ge CURL hui hua she zhi xuan xiang 。option shen shu shi ni xiang yao de she zhi ,value shi zhe ge xuan xiang gei ding de zhi 。
  xia lie xuan xiang de zhi jiang bei zuo wei chang zheng xing shi yong ( zai option shen shu zhong zhi ding ):
  *CURLOPT_INFILESIZE: dang ni shang chuan yi ge wen jian dao yuan cheng zhan dian , zhe ge xuan xiang gao su PHP ni shang chuan wen jian de da xiao 。
  *CURLOPT_VERBOSE: ru guo ni xiang CURL bao gao mei yi jian yi wai de shi qing , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。
  *CURLOPT_HEADER: ru guo ni xiang ba yi ge tou bao han zai shu chu zhong , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。
  *CURLOPT_NOPROGRESS: ru guo ni bu hui PHP wei CURL chuan shu xian shi yi ge jin cheng tiao , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。
  zhu yi :PHP zi dong she zhi zhe ge xuan xiang wei fei ling zhi , ni ying gai jin jin wei le tiao shi de mu de lai gai bian zhe ge xuan xiang 。
  *CURLOPT_NOBODY: ru guo ni bu xiang zai shu chu zhong bao han body bu fen , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。
  *CURLOPT_FAILONERROR: ru guo ni xiang rang PHP zai fa sheng cuo wu (HTTP dai ma fan hui da yu deng yu 300) shi , bu xian shi , she zhi zhe ge xuan xiang wei yi ren fei ling zhi 。 mo ren xing wei shi fan hui yi ge zheng chang ye , hu lue dai ma 。
  *CURLOPT_UPLOAD: ru guo ni xiang rang PHP wei shang chuan zuo zhun bei , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。
  *CURLOPT_POST: ru guo ni xiang PHP qu zuo yi ge zheng gui de HTTP POST, she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。 zhe ge POST shi pu tong de application/x-www-from-urlencoded lei xing , duo shu bei HTML biao dan shi yong 。
  *CURLOPT_FTPLISTONLY: she zhi zhe ge xuan xiang wei fei ling zhi ,PHP jiang lie chu FTP de mu lu ming lie biao 。
  *CURLOPT_FTPAPPEND: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ,PHP jiang ying yong yuan cheng wen jian dai ti fu gai ta 。
  *CURLOPT_NETRC: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ,PHP jiang zai ni de ~./netrc wen jian zhong cha zhao ni yao jian li lian jie de yuan cheng zhan dian de yong hu ming ji mi ma 。
  *CURLOPT_FOLLOWLOCATION: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ( xiang “Location: “) de tou , fu wu qi hui ba ta dang zuo HTTP tou de yi bu fen fa song ( zhu yi zhe shi di gui de ,PHP jiang fa song xing ru “Location: “ de tou )。
  *CURLOPT_PUT: she zhi zhe ge xuan xiang wei yi ge fei ling zhi qu yong HTTP shang chuan yi ge wen jian 。 yao shang chuan zhe ge wen jian bi xu she zhi CURLOPT_INFILE he CURLOPT_INFILESIZE xuan xiang .
  *CURLOPT_MUTE: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ,PHP dui yu CURL han shu jiang wan quan chen mo 。
  *CURLOPT_TIMEOUT: she zhi yi ge chang zheng xing shu , zuo wei zui da yan xu duo shao miao 。
  *CURLOPT_LOW_SPEED_LIMIT: she zhi yi ge chang zheng xing shu , kong zhi chuan song duo shao zi jie 。
  *CURLOPT_LOW_SPEED_TIME: she zhi yi ge chang zheng xing shu , kong zhi duo shao miao chuan song CURLOPT_LOW_SPEED_LIMIT gui ding de zi jie shu 。
  *CURLOPT_RESUME_FROM: chuan di yi ge bao han zi jie pian yi di zhi de chang zheng xing shen shu ,( ni xiang zhuan yi dao de kai shi biao dan )。
  *CURLOPT_SSLVERSION: chuan di yi ge bao han SSL ban ben de chang shen shu 。 mo ren PHP jiang bei ta zi ji nu li de que ding , zai geng duo de an quan zhong ni bi xu shou gong she zhi 。
  *CURLOPT_TIMECONDITION: chuan di yi ge chang shen shu , zhi ding zen me chu li CURLOPT_TIMEVALUE shen shu 。 ni ke yi she zhi zhe ge shen shu wei TIMECOND_IFMODSINCE huo TIMECOND_ISUNMODSINCE。 zhe jin yong yu HTTP。
  *CURLOPT_TIMEVALUE: chuan di yi ge cong 1970-1-1 kai shi dao xian zai de miao shu 。 zhe ge shi jian jiang bei CURLOPT_TIMEVALUE xuan xiang zuo wei zhi ding zhi shi yong , huo bei mo ren TIMECOND_IFMODSINCE shi yong 。
  xia lie xuan xiang de zhi jiang bei zuo wei zi fu chuan :
  *CURLOPT_URL: zhe shi ni xiang yong PHP qu hui de URL di zhi 。 ni ye ke yi zai yong curl_init() han shu chu shi hua shi she zhi zhe ge xuan xiang 。
  *CURLOPT_USERPWD: chuan di yi ge xing ru [username]:[password] feng ge de zi fu chuan , zuo yong PHP qu lian jie 。
  *CURLOPT_PROXYUSERPWD: chuan di yi ge xing ru [username]:[password] ge shi de zi fu chuan qu lian jie HTTP dai li 。
  *CURLOPT_RANGE: chuan di yi ge ni xiang zhi ding de fan wei 。 ta ying gai shi ”X-Y” ge shi ,X huo Y shi bei chu wai de 。HTTP chuan song tong yang zhi chi ji ge jian ge , yong dou ju lai fen ge (X-Y,N-M)。
  *CURLOPT_POSTFIELDS: chuan di yi ge zuo wei HTTP “POST” cao zuo de suo you shu ju de zi fu chuan 。
  *CURLOPT_REFERER: zai HTTP qing qiu zhong bao han yi ge ”referer” tou de zi fu chuan 。
  *CURLOPT_USERAGENT: zai HTTP qing qiu zhong bao han yi ge ”user-agent” tou de zi fu chuan 。
  *CURLOPT_FTPPORT: chuan di yi ge bao han bei ftp “POST” zhi ling shi yong de IP di zhi 。 zhe ge POST zhi ling gao su yuan cheng fu wu qi qu lian jie wo men zhi ding de IP di zhi 。 zhe ge zi fu chuan ke yi shi yi ge IP di zhi , yi ge zhu ji ming , yi ge wang luo jie mian ming ( zai UNIX xia ), huo shi ‘-’( shi yong xi tong mo ren IP di zhi )。
  *CURLOPT_COOKIE: chuan di yi ge bao han HTTP cookie de tou lian jie 。
  *CURLOPT_SSLCERT: chuan di yi ge bao han PEM ge shi zheng shu de zi fu chuan 。
  *CURLOPT_SSLCERTPASSWD: chuan di yi ge bao han shi yong CURLOPT_SSLCERT zheng shu bi xu de mi ma 。
  *CURLOPT_COOKIEFILE: chuan di yi ge bao han cookie shu ju de wen jian de ming zi de zi fu chuan 。 zhe ge cookie wen jian ke yi shi Netscape ge shi , huo shi dui cun zai wen jian zhong de HTTP feng ge de tou 。
  *CURLOPT_CUSTOMREQUEST: dang jin xing HTTP qing qiu shi , chuan di yi ge zi fu bei GET huo HEAD shi yong 。 wei jin xing DELETE huo qi ta cao zuo shi you yi de , geng Pass a string to be used instead of GET or HEAD when doing an HTTP request. This is useful for doing or another, more obscure, HTTP request.
  zhu yi : zai que ren ni de fu wu qi zhi chi ming ling xian bu yao qu zhe yang zuo 。
  xia lie de xuan xiang yao qiu yi ge wen jian miao shu ( tong guo shi yong fopen() han shu huo de ):
  *CURLOPT_FILE: zhe ge wen jian jiang shi ni fang zhi chuan song de shu chu wen jian , mo ren shi STDOUT.
  *CURLOPT_INFILE: zhe ge wen jian shi ni chuan song guo lai de shu ru wen jian 。
  *CURLOPT_WRITEHEADER: zhe ge wen jian xie you ni shu chu de tou bu fen 。
  *CURLOPT_STDERR: zhe ge wen jian xie you cuo wu er bu shi stderr。【原文】【汉音对照
 
 
 
 
 
 
 
 
日版宠物情人插曲《Winding Road》歌词

日版宠物情人2017的插曲,很带节奏感,日语的,女生唱的。 最后听见是在第8集的时候女主手割伤了,然后男主用嘴帮她吸了一下,插曲就出来了。 歌手:Def...

兄弟共妻,我成了他们夜里的美食

老钟家的两个儿子很特别,就是跟其他的人不太一样,魔一般的执着。兄弟俩都到了要结婚的年龄了,不管自家老爹怎么磨破嘴皮子,兄弟俩说不娶就不娶,老父母为兄弟两操碎了心...

如何磨出破洞牛仔裤?牛仔裤怎么剪破洞?

把牛仔裤磨出有线的破洞 1、具体工具就是磨脚石,下面垫一个硬物,然后用磨脚石一直磨一直磨,到把那块磨薄了,用手撕开就好了。出来的洞啊很自然的。需要猫须的话调几...

我就是扫描下图得到了敬业福和爱国福

先来看下敬业福和爱国福 今年春节,支付宝再次推出了“五福红包”活动,表示要“把欠大家的敬业福都还给大家”。 今天该活动正式启动,和去年一样,需要收集“五福”...

冰箱异味产生的原因和臭味去除的方法

有时候我们打开冰箱就会闻到一股异味,冰箱里的这种异味是因为一些物质发出的气味的混合体,闻起来让人恶心。 产生这些异味的主要原因有以下几点。 1、很多人有这种习...

 
 
curl_setopt — wei CURL tiao yong she zhi yi ge xuan xiang miao shu bool curl_setopt (int ch, string option, mixed value) curl_setopt() han shu jiang wei yi ge CURL hui hua she zhi xuan xiang 。option shen shu shi ni xiang yao de she zhi ,value shi zhe ge xuan xiang gei ding de zhi 。 xia lie xuan xiang de zhi jiang bei zuo wei chang zheng xing shi yong ( zai option shen shu zhong zhi ding ):  *CURLOPT_INFILESIZE: dang ni shang chuan yi ge wen jian dao yuan cheng zhan dian , zhe ge xuan xiang gao su PHP ni shang chuan wen jian de da xiao 。 *CURLOPT_VERBOSE: ru guo ni xiang CURL bao gao mei yi jian yi wai de shi qing , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。 *CURLOPT_HEADER: ru guo ni xiang ba yi ge tou bao han zai shu chu zhong , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。 *CURLOPT_NOPROGRESS: ru guo ni bu hui PHP wei CURL chuan shu xian shi yi ge jin cheng tiao , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。 zhu yi :PHP zi dong she zhi zhe ge xuan xiang wei fei ling zhi , ni ying gai jin jin wei le tiao shi de mu de lai gai bian zhe ge xuan xiang 。 *CURLOPT_NOBODY: ru guo ni bu xiang zai shu chu zhong bao han body bu fen , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。 *CURLOPT_FAILONERROR: ru guo ni xiang rang PHP zai fa sheng cuo wu (HTTP dai ma fan hui da yu deng yu 300) shi , bu xian shi , she zhi zhe ge xuan xiang wei yi ren fei ling zhi 。 mo ren xing wei shi fan hui yi ge zheng chang ye , hu lue dai ma 。 *CURLOPT_UPLOAD: ru guo ni xiang rang PHP wei shang chuan zuo zhun bei , she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。 *CURLOPT_POST: ru guo ni xiang PHP qu zuo yi ge zheng gui de HTTP POST, she zhi zhe ge xuan xiang wei yi ge fei ling zhi 。 zhe ge POST shi pu tong de application/x-www-from-urlencoded lei xing , duo shu bei HTML biao dan shi yong 。 *CURLOPT_FTPLISTONLY: she zhi zhe ge xuan xiang wei fei ling zhi ,PHP jiang lie chu FTP de mu lu ming lie biao 。 *CURLOPT_FTPAPPEND: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ,PHP jiang ying yong yuan cheng wen jian dai ti fu gai ta 。 *CURLOPT_NETRC: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ,PHP jiang zai ni de ~./netrc wen jian zhong cha zhao ni yao jian li lian jie de yuan cheng zhan dian de yong hu ming ji mi ma 。 *CURLOPT_FOLLOWLOCATION: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ( xiang “Location: “) de tou , fu wu qi hui ba ta dang zuo HTTP tou de yi bu fen fa song ( zhu yi zhe shi di gui de ,PHP jiang fa song xing ru “Location: “ de tou )。 *CURLOPT_PUT: she zhi zhe ge xuan xiang wei yi ge fei ling zhi qu yong HTTP shang chuan yi ge wen jian 。 yao shang chuan zhe ge wen jian bi xu she zhi CURLOPT_INFILE he CURLOPT_INFILESIZE xuan xiang . *CURLOPT_MUTE: she zhi zhe ge xuan xiang wei yi ge fei ling zhi ,PHP dui yu CURL han shu jiang wan quan chen mo 。 *CURLOPT_TIMEOUT: she zhi yi ge chang zheng xing shu , zuo wei zui da yan xu duo shao miao 。 *CURLOPT_LOW_SPEED_LIMIT: she zhi yi ge chang zheng xing shu , kong zhi chuan song duo shao zi jie 。 *CURLOPT_LOW_SPEED_TIME: she zhi yi ge chang zheng xing shu , kong zhi duo shao miao chuan song CURLOPT_LOW_SPEED_LIMIT gui ding de zi jie shu 。 *CURLOPT_RESUME_FROM: chuan di yi ge bao han zi jie pian yi di zhi de chang zheng xing shen shu ,( ni xiang zhuan yi dao de kai shi biao dan )。 *CURLOPT_SSLVERSION: chuan di yi ge bao han SSL ban ben de chang shen shu 。 mo ren PHP jiang bei ta zi ji nu li de que ding , zai geng duo de an quan zhong ni bi xu shou gong she zhi 。 *CURLOPT_TIMECONDITION: chuan di yi ge chang shen shu , zhi ding zen me chu li CURLOPT_TIMEVALUE shen shu 。 ni ke yi she zhi zhe ge shen shu wei TIMECOND_IFMODSINCE huo TIMECOND_ISUNMODSINCE。 zhe jin yong yu HTTP。 *CURLOPT_TIMEVALUE: chuan di yi ge cong 1970-1-1 kai shi dao xian zai de miao shu 。 zhe ge shi jian jiang bei CURLOPT_TIMEVALUE xuan xiang zuo wei zhi ding zhi shi yong , huo bei mo ren TIMECOND_IFMODSINCE shi yong 。 xia lie xuan xiang de zhi jiang bei zuo wei zi fu chuan :  *CURLOPT_URL: zhe shi ni xiang yong PHP qu hui de URL di zhi 。 ni ye ke yi zai yong curl_init() han shu chu shi hua shi she zhi zhe ge xuan xiang 。 *CURLOPT_USERPWD: chuan di yi ge xing ru [username]:[password] feng ge de zi fu chuan , zuo yong PHP qu lian jie 。 *CURLOPT_PROXYUSERPWD: chuan di yi ge xing ru [username]:[password] ge shi de zi fu chuan qu lian jie HTTP dai li 。 *CURLOPT_RANGE: chuan di yi ge ni xiang zhi ding de fan wei 。 ta ying gai shi ”X-Y” ge shi ,X huo Y shi bei chu wai de 。HTTP chuan song tong yang zhi chi ji ge jian ge , yong dou ju lai fen ge (X-Y,N-M)。 *CURLOPT_POSTFIELDS: chuan di yi ge zuo wei HTTP “POST” cao zuo de suo you shu ju de zi fu chuan 。 *CURLOPT_REFERER: zai HTTP qing qiu zhong bao han yi ge ”referer” tou de zi fu chuan 。 *CURLOPT_USERAGENT: zai HTTP qing qiu zhong bao han yi ge ”user-agent” tou de zi fu chuan 。 *CURLOPT_FTPPORT: chuan di yi ge bao han bei ftp “POST” zhi ling shi yong de IP di zhi 。 zhe ge POST zhi ling gao su yuan cheng fu wu qi qu lian jie wo men zhi ding de IP di zhi 。 zhe ge zi fu chuan ke yi shi yi ge IP di zhi , yi ge zhu ji ming , yi ge wang luo jie mian ming ( zai UNIX xia ), huo shi ‘-’( shi yong xi tong mo ren IP di zhi )。 *CURLOPT_COOKIE: chuan di yi ge bao han HTTP cookie de tou lian jie 。 *CURLOPT_SSLCERT: chuan di yi ge bao han PEM ge shi zheng shu de zi fu chuan 。 *CURLOPT_SSLCERTPASSWD: chuan di yi ge bao han shi yong CURLOPT_SSLCERT zheng shu bi xu de mi ma 。 *CURLOPT_COOKIEFILE: chuan di yi ge bao han cookie shu ju de wen jian de ming zi de zi fu chuan 。 zhe ge cookie wen jian ke yi shi Netscape ge shi , huo shi dui cun zai wen jian zhong de HTTP feng ge de tou 。 *CURLOPT_CUSTOMREQUEST: dang jin xing HTTP qing qiu shi , chuan di yi ge zi fu bei GET huo HEAD shi yong 。 wei jin xing DELETE huo qi ta cao zuo shi you yi de , geng Pass a string to be used instead of GET or HEAD when doing an HTTP request. This is useful for doing or another, more obscure, HTTP request. zhu yi : zai que ren ni de fu wu qi zhi chi ming ling xian bu yao qu zhe yang zuo 。 xia lie de xuan xiang yao qiu yi ge wen jian miao shu ( tong guo shi yong fopen() han shu huo de ):   *CURLOPT_FILE: zhe ge wen jian jiang shi ni fang zhi chuan song de shu chu wen jian , mo ren shi STDOUT. *CURLOPT_INFILE: zhe ge wen jian shi ni chuan song guo lai de shu ru wen jian 。 *CURLOPT_WRITEHEADER: zhe ge wen jian xie you ni shu chu de tou bu fen 。 *CURLOPT_STDERR: zhe ge wen jian xie you cuo wu er bu shi stderr。
󰈣󰈤
  免责声明:本文仅代表作者个人观点,与王朝网络无关。王朝网络登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述,其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
越来越漂亮的楚楚(7)
越来越漂亮的楚楚(6)
越来越漂亮的楚楚(5)
越来越漂亮的楚楚(4)
共长一色
水中莲
峰林晚照
远离喧嚣——山村小景
 
>>返回首页<<
 为你推荐
 
 
 转载本文
 UBB代码 HTML代码
复制到剪贴板...
 
 热帖排行
 
 
 
 
©2005- 王朝网络 版权所有