curl 参数 -a/--append 上传文件时,附加到目标文件-A/--user-agent string> 设置用户代理发送给服务器 -anyauth 可以使用“任何”身份验证方法-b/--cookie name=string/file> cookie字符串或文件读取位置 - basic 使用HTTP基本验证-B/--use-ascii 使用ASC
shell中两个函数(带参数)相互调用 #!/bin/bashaa () {typeset ii=$1if [ $i -ge 5 ]; thenexitfiecho aa call bbbb $(( i+=1 ))}bb () {typeset ii=$1if [ $i -ge 5 ]; thenexitfiecho bb call aaaa $(( i+=1 ))}aa 1
shell 下 urlencode/urldecode 编码/解码的几种方法 1、先弄清楚为什么要 urlencode?http://www.genome.iastate.edu/community/angenmap/URLEncoding.htmlURL Encoding is the process of converting string into valid URL format. Valid URL format means that the URL con
shell urldecode(awk版) #/bin/shawk 'BEGIN{for(i=0;i1);printf"%s",substr(i,1,RSTART-1);printf"%c",hex[substr(i,RSTART+1,1)]*16+hex[substr(i,RSTART+2,1)];i=substr(i,RSTART+RLENGTH);}print i;}'
验证码captcha用C语言实现 // Version 2012-02-20 (http://github.com/ITikhonov/captcha/tree/bbbaaa33ad3f94ce3f091badba51b44a231f12fd)// zlib/libpng license is at the end of this fileconst int gifsize;void captcha(unsigned ch
md5.c #include #include #include #include typedef unsigned char *POINTER; typedef unsigned short int UINT2; typedef unsigned long int UINT4; typedef str
md5.js /*sha1 * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined * in FIPS PUB 180-1 * Version 2.1a Copyright Paul Johnston 2000 - 2002. * Other contributors: Greg Holt, Andrew
getaddrinfo.c /* * getaddrinfo.c - Simple example of using getaddrinfo(3) function. * * Michal Ludvig (c) 2002, 2003 * http://www.logix.cz/michal/devel/ * * License: public domain. */#include #include
FTP EPRT 的解析(for IPv6) #include #include #include #include #include #include #include #include #include #include #include int main(int argc,char **argv){ int i=0,j=0,k=0,ret=0; char str[512]={0}; char str2[5
mydlink.asp的解析 #include #include int main(int argc,char **argv){ char buffer[1024] = "/mydlink/set_apply.asp?settingsChanged=1&index=1&Sta_type=3&Sta_reboot=1&index=2&Sta_type=3&Sta_reboot=1&index=3&Sta_type=3&
strtok_r用法 #include#include#define INFO_MAX_SZ 255int main(){ int i=0,j=0; char buffer[INFO_MAX_SZ]="Fred male 25,John male 62,Anna female 16"; char *p[20]; char *buf=buffer; char *outer
用JavaScript实现UrlEncode和UrlDecode的脚本代码 Function str2asc(strstr) str2asc = hex(asc(strstr)) End Function Function asc2str(ascasc) asc2str = chr(ascasc) End Function /*这里开始时UrlEncode和UrlDecode函数*/ function UrlEncode(str){ var re