cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Can CURL simulate the "Backspace" action in webrowsing?

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Sat, 25 Apr 2009 14:46:29 -0500

On Sat, Apr 25, 2009 at 2:28 PM, Hailu Meng <hailumeng_at_gmail.com> wrote:

> Hi there,
>
> When I use curl in php, I browse one link webpage and go to the next one.
> The simple way to go back is to OPTSET the previous link. But I am wondering
> whether there is other way to simply backspace the webpage.

Curl doesn't maintain any kind of url history, so you'll have to do
something external to curl. You could add new urls to an array, so
backspacing is just a question of stepping backwards through the array.

Ralph Mitchell

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-25