curl-library
help -- how can i get the result when sever returns 302?
From: Basil Su <hityourface_at_gmail.com>
Date: Wed, 7 Apr 2010 18:12:56 +0800
Date: Wed, 7 Apr 2010 18:12:56 +0800
HI ALL,
i use libcurl to develop a simple http client. now i can download
normally. but i've got a problem. if the server returns 302, how can i know?
i mean, i only know like this:
CURLMsg *msg = curl_multi_info_read(), and i could use msg->data.result
know whether this connection is OK, but if 302? could i know? or i should
parse the download data libcurl gives me?
thanks
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-07