-
Notifications
You must be signed in to change notification settings - Fork 229
Bugs
antel edited this page Aug 12, 2010
·
23 revisions
REDIRECT_TIME BUG:
redirect_time didn’t find the correct version of curl so always give the warning:
warning: Installed libcurl is too old to support redirect_time</pre>
(latest curb(from this git), curl 7.19.2(latest as 30/11/08))
bq.Looking into this libcurl changed from using #define constants for these parts of the library to using an enum.
bq.Current output: “0.174766” “0.863931”URL STORING BUG:
The url gives two 301(Moved permanently) and one 200, only the first url(search.ebay.com) is stored and the last(200 shop.ebay.com is skipped, normal behavior?):
This is normal behavior. What you want is the last_effective_url. [http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html see libcurl documentation for details].def expand(url) request = Curl::Easy.perform(url) do |curl| curl.follow_location = true curl.verbose = true end puts request.url end web = expand('http://search.ebay.com/search/search.dll?from=R40&_trksid=m37&satitle=ipod') output: curl-verbose* http://search.ebay.com/search/search.dll?from=R40&_trksid=m37&satitle=ipod instead of: (from curl-verbose*) > GET /items/_W0QQ_nkwZipodQQ_armrsZ1QQ_fromZR40QQ_mdoZ HTTP/1.1 Host: shop.ebay.com