curl-users
Re: Cookies!!
Date: Tue, 25 Feb 2003 09:04:45 +1000
I don't get what you mean. A webpage is completely independant of things like pictures.
You can save the html source of a page and it will work fine. it just wont look pretty since its missing images & style sheets etc.
If you want to get images and the like then you need to write a script which will run through the html source and pull out all the image tags etc that you want to save. then download them - which is what a webbrowser does.
Looking at the americawest.com site I can't see any reason why it wont save without saving the content. You might be missing somethings like drop down boxes and the like however as there is some linked javascript pages - but i couldn't be bothered reading the code to figure out what does what.
D.
>>> hampole_at_usc.edu 25/02/03 8:41:02 am >>>
Hi
Thaks for the help. I do have one more query!! If I issue a POST request and when I want to save the page I want to save it with the content(images,etc as well). I want to issue this from the prompt. This is becuse some sites do not save unless it is saved in full. for example americawest.com when I request some fares and save(even in a browser,i used galeon) it will not save unless the content is also saved. Any way to solve this.
I noticed that there are tools like GetLeft but they just use URL's and not POST requests
Thanks
Rahul
----- Original Message -----
From: David Withnall <david_withnall_at_health.qld.gov.au>
Date: Monday, February 24, 2003 2:28 pm
Subject: Re: Cookies!!
> download all the stuff that the page you're looking at links too.
> the cookies are put in by the banner ads and such like, you need to get > them if you want the cookies associated with them.
>
> Also follow any redirections issued by the webserver.
>
> D.
>
> >>> hampole_at_usc.edu 25/02/03 8:15:16 am >>>
> Hi
> I have noticed that many websites not only put in cookies from their own > websites but also from another party as well. for example in expedia.com > there are cookies loaded from expedia.com as well as msn.com. Curl I notice
> only saves the cookies recived from the latest website(in this case
> expedia.com) while my future requests need the cookies from msn.com. What > is the solution to this problem. I am using the latest version on a linux
> machine and use the following format
> curl -o "/airlines/expedia.html" -c ./expedia -A "Mozilla/4.0 (compatible;
> MSIE 5.01; Windows NT 5.0)" -L "http://www.expedia.com/"
> Any help on the subject is much appreciated.
> Thanks
> Rahul
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
>
>
>
> **********************************************************************
> This e-mail, including any attachments sent with it, is confidential
> and for the sole use of the intended recipient(s). This confidentiality > is not waived or lost if you receive it and you are not the intended
> recipient(s), or if it is transmitted/ received in error.
>
> Any unauthorised use, alteration, disclosure, distribution or review
> of this e-mail is prohibited. It may be subject to a statutory duty of > confidentiality if it relates to health service matters.
>
> If you are not the intended recipient(s), or if you have received this
> e-mail in error, you are asked to immediately notify the sender by
> telephone or by return e-mail. You should also delete this e-mail
> message and destroy any hard copies produced.
> **********************************************************************
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
**********************************************************************
This e-mail, including any attachments sent with it, is confidential
and for the sole use of the intended recipient(s). This confidentiality
is not waived or lost if you receive it and you are not the intended
recipient(s), or if it is transmitted/ received in error.
Any unauthorised use, alteration, disclosure, distribution or review
of this e-mail is prohibited. It may be subject to a statutory duty of
confidentiality if it relates to health service matters.
If you are not the intended recipient(s), or if you have received this
e-mail in error, you are asked to immediately notify the sender by
telephone or by return e-mail. You should also delete this e-mail
message and destroy any hard copies produced.
**********************************************************************
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-25