Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^7: Perl Mechanize - Header Help required.

by Anonymous Monk
on Jan 31, 2010 at 05:38 UTC ( [id://820546]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Perl Mechanize - Header Help required.
in thread Perl Mechanize - Header Help required.

May be u missed on the idea. nothing was written. I have attached, the complete source. please check and let me know.

You're missing the idea. You described how to do it in a browser (like firefox). All you need to do now is replicate those steps with WWW::Mechanize. You may need to install http://livehttpheaders.mozdev.org/ or http://www.wireshark.org/ to help you see what firefox is doing exactly. Or use the new WWW::Mechanize::Firefox and get all the benefits of firefox.

Also see Web Testing with HTTP::Recorder

  • Comment on Re^7: Perl Mechanize - Header Help required.

Replies are listed 'Best First'.
Re^8: Perl Mechanize - Header Help required.
by smilingsagar (Initiate) on Jan 31, 2010 at 06:52 UTC
    This is what i could extract from Wireshark. Please check and help me get this with mechanize GET /doc/UNDOC/GEN/N09/572/72/pdf/N0957272.pdf?OpenElement HTTP/1.1 Host: documents-dds-ny.un.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://documents.un.org/parent_document.asp Cookie: DomAuthSessId=150E0B8782AB02A5B91038F16CC7323F If-Modified-Since: Tue, 27 Oct 2009 21:57:45 GMT
    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://820546]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found