amitsq has asked for the wisdom of the Perl Monks concerning the following question:
so i am totally new and over challenged with proxies and all that web programming, so pls bear with me. I am currently trying to access with the LWP-Modul a (https-)webpage, to fill in its form, submit it and getting the result page. While I am able to get the content of the first page with the form, the response via Post is always empty. While I am trying to recreate the request-request, i see there is following line in the request-header :
Proxy-Authorization:"Negotiate YIIGzQYGKwYBBQUCoIIGwTCCBr2gMDAuBgkqhkiC9xIBAgIGCSqGSIb3EgECAgYKKwYBBAGCNwICHgYKKwYBBAGCNwICCqKCBoc [shorted] "There is no need to log in to the website, so I got no password or username. I tried my best to find out about it, but I got no clue how i could get the Negotiate key. So i use Active perl on Windows and the LWP-Authen-Negotiate Modul is not available for Windows. Are there any other solutions?
$param ='simpleSearchSearchForm=simpleSearchSearchForm&simpleSearchSea +rchForm%3Aj_idt379=ALLTXT&simpleSearchSearchForm%3AfpSearch=brushless ++motor&simpleSearchSearchForm%3AcommandSimpleFPSearch=Search&simpleSe +archSearchForm%3Aj_idt447=workaround&$viewState'; $request = HTTP::Request->new('POST', 'https://patentscope.wipo.int/se +arch/en/search.jsf'); $request->header('Content-Type' => 'application/x-www-form-urlencoded' +); $request->header('Referer' => "https://patentscope.wipo.int/search/en/ +search.jsf"); $request->header('Accept' => 'text/html,application/xhtml+xml,applicat +ion/xml;q=0.9,*/*;q=0.8'); $request->header('Connection' => 'keep-alive'); $request->header('Cookie' => uc $jsessionID.'; ABIW=balancer.cms41; wi +po_language=en; BSWA=balancer.bswa2'); $request->content($param); #Proxy-Authorization: Negotiate ? $response = $ua->request($request); $page = $response->decoded_content(); #empty print $page;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Authen::Negotiate Wep-Programming
by 1nickt (Canon) on May 23, 2017 at 18:07 UTC | |
|
Re: Authen::Negotiate Wep-Programming
by Anonymous Monk on May 23, 2017 at 13:50 UTC | |
|
Re: Authen::Negotiate Wep-Programming
by 1nickt (Canon) on May 23, 2017 at 13:09 UTC | |
by amitsq (Beadle) on May 23, 2017 at 13:59 UTC | |
by Anonymous Monk on May 23, 2017 at 14:41 UTC | |
by amitsq (Beadle) on May 23, 2017 at 15:05 UTC | |
by Anonymous Monk on May 23, 2017 at 17:16 UTC | |
by amitsq (Beadle) on May 24, 2017 at 07:56 UTC |