[Ilugc] reg Wget --load-cookies

  • From: suraj@xxxxxxxxxxx (Suraj Kumar)
  • Date: Wed May 31 11:39:16 2006

On 5/30/06, Venkatraman S <blizzard_venkat@xxxxxxxxxxx> wrote:

I need to mention the name of the cookie along with its value in a txt file 
and am sending the same as a parameter. W.r.t this, can you kindly let me 
know what should be the format of the cookie file?

If you did man wget, it tells you that the cookie file has to be in
the same format as Netscape's cookie file format:

"""
           Load cookies from file before the first HTTP retrieval.
file is a textual file in the format originally used by
           Netscape's cookies.txt file.

           You will typically use this option when mirroring sites
that require that you be logged in to access some or all
           of their content.  The login process typically works by the
web server issuing an HTTP cookie upon receiving and
           verifying your credentials.  The cookie is then resent by
the browser when accessing that part of the site, and
           so proves your identity.

           Mirroring such a site requires Wget to send the same
cookies your browser sends when communicating with the
           site.  This is achieved by --load-cookies---simply point
Wget to the location of the cookies.txt file, and it
           will send the same cookies your browser would send in the
same situation.  Different browsers keep textual
           cookie files in different locations:

           Netscape 4.x.
               The cookies are in ~/.netscape/cookies.txt.

           Mozilla and Netscape 6.x.
               Mozilla's cookie file is also named cookies.txt,
located somewhere under ~/.mozilla, in the directory of
               your profile.  The full path usually ends up looking
somewhat like ~/.mozilla/default/some-weird-
               string/cookies.txt.

           Internet Explorer.
               You can produce a cookie file Wget can use by using the
File menu, Import and Export, Export Cookies.  This
               has been tested with Internet Explorer 5; it is not
guaranteed to work with earlier versions.

           Other browsers.
               If you are using a different browser to create your
cookies, --load-cookies will only work if you can locate
               or produce a cookie file in the Netscape format that
Wget expects.
"""

cheers,

  -Suraj


I am using the following format in the cookie file (that is being passed as a 
param):
<cookie_name> = <cookie_value>

Is this right?  ;as, this doesnt seem to work.

If i hit the mid-tier url rather than hitting the big-ip, then this seems to 
work. But I am not sure whether this will dis-regard the cookie file in this 
case.Do i have configure big-ip to work for wget along with the cookie-option?

Kindly correct me if I am wrong and do lemme know of ur comments/feedbacks.

--Venkat
http://blizzardzblogs.blogspot.com



---------------------------------
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better.
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc



-- 
The absolute reality about absolute reality is that absolute reality
doesn't exist.

Other related posts: