A
Alont
this is the header IE send to server:
POST /services/test.asp HTTP/1.1
Cache-Control: no-cache
Cookie: ASPSESSIONIDCQTDRQQR=IEDGMDLBFKGNEBGBIKNOEDLN
paramater1=baozhuangxiang&ext=txt
I want Perl can send this header too, but I don't know how to add
"paramater1=baozhuangxiang&ext=txt " to the header?
$url='http://localhost/services/test.asp'
$request = HTTP::Request->new(POST => $url);
#before send the request, how I can add
"paramater1=baozhuangxiang&ext=txt" to the header?
$response = $lwp->request($request); #send request
if ($response->is_success) {
$data = $response->content;
POST /services/test.asp HTTP/1.1
Cache-Control: no-cache
Cookie: ASPSESSIONIDCQTDRQQR=IEDGMDLBFKGNEBGBIKNOEDLN
paramater1=baozhuangxiang&ext=txt
I want Perl can send this header too, but I don't know how to add
"paramater1=baozhuangxiang&ext=txt " to the header?
$url='http://localhost/services/test.asp'
$request = HTTP::Request->new(POST => $url);
#before send the request, how I can add
"paramater1=baozhuangxiang&ext=txt" to the header?
$response = $lwp->request($request); #send request
if ($response->is_success) {
$data = $response->content;