perl post 请求相关参数
2024-09-10 17:06:05
$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' );
最新文章
- 《Qt Quick 4小时入门》学习笔记2
- LLVM与Clang的概述及关系
- android安装busybox
- C++容器之Vector
- IO同步、异步与阻塞、非阻塞
- 创意设计展示:折叠效果在移动 App 中的应用
- 浅谈CLR
- 【JavaScript】HTML5/CSS3实现五彩进度条应用
- Install_ruby
- 1、Zookeeper熟悉和用途综述
- __无标题栏的窗口拖动___javafx
- memcached单机或热备的安装部署
- VMware虚拟机扩充硬盘容量
- 算法竞赛新编??---WERTYU,UVa10082
- AE(ArcEngine)定制工具Tool工具箱
- robot framework 测试/预发/线上环境快捷切换
- 【刷题】UOJ #207 共价大爷游长沙
- mongo 常用操作命令
- xshell sftp可用命令,sftp: cannot open d: to write![解决]
- php创建token
热门文章
- jquery next nextAll nextUntil siblings的区别
- JS(一)
- [原创+实战+钓鱼]setoolkit+映射
- cocos2dx--cocos2dx3.1.1执行报无法解析的外部符号
- php增删改查,自己写的demo
- 实战:推断mysql中当前用户的连接数-分组筛选
- LDAP错误代码221
- wpf-DataTemplate应用
- .call()和.apply()相同点与不同点
- 使用匿名管道在进程间通信 (System.IO.Pipes使用)(转)