windows lwp 乱码问题
来源:互联网 发布:淘宝泳衣女装知乎 编辑:程序博客网 时间:2024/05/23 10:54
use LWP::UserAgent;use Encode;my $ua = LWP::UserAgent->new;$phone=$ARGV[0];$cc=$ARGV[1];$ua->timeout(10);$ua->env_proxy;$ua->agent("Mozilla/8.0");$host = "http://sh2.ipyy.com/sms.aspx?action=send&userid=5409&account=sc10624&password=c1062411mobile=$phone&content=$cc&sendTime=&extno=";my $response = $ua->get($host); $ua->default_headers;if ($response->is_success) {#my $str=encode("gbk",decode("utf8","$r"));#my $r=$response->decoded_content); print encode("gbk",decode("utf8",$response->content)); # or whatever}else { die $response->status_line;}C:\>perl ./a2.pl 18072722237 888<?xml version="1.0" encoding="utf-8" ?><returnsms> <returnstatus>Faild</returnstatus> <message>鐢ㄦ埛鍚嶉敊璇?/message> <remainpoint>0</remainpoint> <taskID>0</taskID> <successCounts>0</successCounts></returnsms>
0 0
- windows lwp 乱码问题
- perl lwp 超时问题
- gVim for windows 乱码问题
- gVim for windows乱码问题
- 解决windows vim乱码问题
- 解决windows文件名乱码问题
- windows 下 sourceTree 乱码问题
- windows 下 sourceTree 乱码问题
- windows 下 sourceTree 乱码问题
- Perl LWP 模块安装及遇到的问题
- WIndows Mobile中音标乱码的问题
- gVim for windows 乱码问题(转载)
- windows下,命令行,sqlplus乱码问题。
- windows phone中解决html乱码问题
- 解决Windows Git Bash中文乱码问题
- 解决Windows Git Bash中文乱码问题
- windows phone 7 webBrowser中文乱码问题
- 解决matplotlib中文乱码问题(Windows)
- JSP基础教程【1】
- Android TextView内容过长加省略号,点击显示全部内容
- 【2047】求前n个完全数
- codevs 2822 爱在心中
- linux下tar gz bz2 tgz z等众多压缩文件的压缩与解压方法
- windows lwp 乱码问题
- 怎么花最少的钱提升出租屋的格调?
- Android-你还在用downloadmanager更新下载-out了!!!
- solr 单机版和solr分布式式环境的搭建
- Andorid基础------Service
- NYOJ_128 前缀式计算
- 手机号码段大全
- 红黑树详解 原理 史上最强 精华
- 最长回文串 manacher