zoukankan      html  css  js  c++  java
  • perl post 请求相关参数

        $ua->post( $url, \%form )
        $ua->post( $url, @form )
        $ua->post( $url, \%form, $field_name => $value, ... )
        $ua->post( $url, $field_name => $value,... Content => \%form )
        $ua->post( $url, $field_name => $value,... Content => @form )
        $ua->post( $url, $field_name => $value,... Content => $content )
            This method will dispatch a "POST" request on the given $url, with
            %form or @form providing the key/value pairs for the fill-in form
            content. Additional headers and content options are the same as for
            the get() method.
    		
    		
    		这个方法会调用一个POST 请求在给定的$url上,使用%form 或者@form 提供键值对 对于填充内容,
    		
    		额外的 headers 和内存选项是和get()方法一样
    		第一个参数是登陆的地址,第二个参数是一个匿名hash,第三个参数是请求头
    		   my $url='https://wenjinbao.winfae.com/business/dispatch_post.do?action=submitAdminLogin';
       my $res = $ua->post($url,{
    	                         'userName'=>'IT_public',
    							 #'userName'=>'ITxxxx',
                                 'userPass'=>'xxx',
    						     'userPass1'=>'xx',
                                'validCode'=> "$validCode"
                                                      },
    				'User-Agent'=>'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0',
                     'Host'=>'wenjinbao.winfae.com',
                     'Referer'=>'https://wenjinbao.winfae.com/backoffice/login.html'				
    				
    										);
    										

  • 相关阅读:
    Java入门第二阶段总结
    POj3017 dp+单调队列优化
    CH5701 开车旅行(倍增dp+set)
    dp优化---四边形不等式与决策单调性
    CH5E07 划分大理石(背包dp+二进制拆分)
    POJ1185 炮兵阵地(状压dp)
    CH5501 环路运输(单调栈)
    poj3585 Accumulation Degree(换根dp)
    CH5105 Cookies (线性dp)
    反射
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13350235.html
Copyright © 2011-2022 走看看