zoukankan      html  css  js  c++  java
  • perl http 请求一些奇怪的问题

    https://user.95516.com/uc-cdhd-web/rest/reg/sendmobilecaptcha/?mobile=17706507805&msgType=01
    
    mobile=18xx722237
    msgType=01
    
    
    http://licai.yingyinglicai.com/user/smsVerifySend.do?mobile=17706507805
    
    mobile=17706xx7805
    
    
    ------------------------------------------------------------------------------------------
    use Encode;  
    use Encode::CN;  
    use URI::Escape;  
    use LWP::Simple;  
    #$host = "http://ip.taobao.com/service/getIpInfo.php?ip=202.101.172.35";  
    #$host = "https://user.95516.com/uc-cdhd-web/rest/reg/sendmobilecaptcha/?mobile=177xx805&msgType=01";  
    $host = "http://licai.yingyinglicai.com/user/smsVerifySend.do?mobile=17xx07805";  
    $content = get($host);  
    print "$content is $content
    ";
    
    可以发短信成功:
    
    
    
    [root@master ~]# cat y2.pl 
    use Encode;  
    use Encode::CN;  
    use URI::Escape;  
    use LWP::Simple;  
    #$host = "http://ip.taobao.com/service/getIpInfo.php?ip=202.101.172.35";  
    $host = "https://user.95516.com/uc-cdhd-web/rest/reg/sendmobilecaptcha/?mobile=180xx22237&msgType=01";  
    #$host = "http://licai.yingyinglicai.com/user/smsVerifySend.do?mobile=17xx6507805";  
    $content = get($host);  
    print "$content is $content
    ";
    [root@master ~]# perl y2.pl 
    $content is 
    
    这个就不行

  • 相关阅读:
    Nmap 網路診斷工具基本使用技巧與教學
    你必须了解的基础的 Linux 网络命令
    SQLAlchemy 一对多
    Linux统计文件行数
    网络拥塞控制(三) TCP拥塞控制算法
    JavaSe:Properties文件格式
    ZooKeeper:第三方客户端 ZKClient
    ab
    JDWP Agent
    ZooKeeper:数据模型
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351520.html
Copyright © 2011-2022 走看看