cURL / Mailing Lists / curl-library / Single Mail


help -- a problem with cookie

From: Basil Su <>
Date: Wed, 14 Apr 2010 14:26:06 +0800

  i have two programs each running on a computer. program1 sends the http
information like url, cookie and referrer to program2. program2 is a program
using libcurl-7.19 on linux. now the problem is the program2 can not
download the right file the url gives. it downloads a site which is a login
website. so i guess the cookie and referrer is wrong. but it is very odd
that if run the 2 programs on a same computer, and it can download right. so
the cookie and referrer is right. the only difference is ip. when 2
programs run on different computers, the ip is different, and it download a
loging website. when the 2 progrmas run on a same computer, the ip is the
same, and it've got right.

 i only useurl_easy_setopt(_curl, CURLOPT_COOKIE, _cookie.c_str()) to set
cookie. is there anything else i should use?


List admin:
Received on 2010-04-14