cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Fully qualified domain url to specific IP address

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 27 Aug 2008 12:23:29 -0700

On Wed, Aug 27, 2008 at 04:31:26PM +0100, Naeem, Shahzad wrote:
> I am trying to use curl to make a request to a specific web server (ie by IP
> address) for a url
> that contains the domain name. The idea is to use curl to monitor individual
> web servers in a
> load balanced cluster - the domain name being for the cluster as a whole.
>
> Specifically, I need to request a page which includes a number of redirects
> which includes
> the setting of cookies - which are domain specific. For some reason curl
> does not seem to
> send the cookies it receives onwards - possibly due to the cookie being
> domain specific.
>
> I am using the -b -c --location options and other authentication options -
> everything seems
> to work apart from the cookies.
>
> Is this possible in curl ?

I can't think of a way to do this directly using curl. But you could always
invoke curl once to get the cookies, then edit the cookiejar file with
the new host information and rerun curl.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
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 2008-08-27