Re: Curl reports: Maximum (50) redirects followed

2013-02-27 Thread Alex Vinnik
Got some input from chromium community... https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-discuss/Aa_gQn40-zE/overview Looks like a bug to me as well. -Alex On Tue, Feb 26, 2013 at 3:29 PM, Alex Vinnik alvinni...@gmail.com wrote: Lots of cookies in that browser

Re: Curl reports: Maximum (50) redirects followed

2013-02-26 Thread Alex Vinnik
Lots of cookies in that browser trace. What about enabling cookies in your curl command? Also, sites are very frequently acting differently depending on the headers used. same result ~$ ~/bin/curl --cookie-jar mycookie.jar -L

Curl reports: Maximum (50) redirects followed

2013-02-22 Thread Alex Vinnik
Hi everybody, I recently run into some disagreement between curl and browsers (chrome, firefox). Same URL is fetched just fine by browsers. $ ~/bin/curl -L

Undefined macros in curl/curl.h

2012-01-04 Thread Alex Vinnik
*Hi everybody,* *Just tried to compile ruby binding (curb) to latest libcurl from bagder/curl and got these compilation error* * * * cc -I. -I. -I/home/alex/.rvm/rubies/jruby-1.6.2/lib/native/include/ruby -I. -DRUBY_EXTCONF_H=\curb_config.h\-fPIC -fno-omit-frame-pointer

Re: curl gets into infinite redirect loop

2011-12-30 Thread Alex Vinnik
On Fri, Dec 30, 2011 at 1:46 PM, Daniel Stenberg dan...@haxx.se wrote: On Thu, 29 Dec 2011, Alex Vinnik wrote: Added strtolower function to http.c. Was not sure if libcurl has similar function. See code diff below. It fixed the problem! curl now gets to the final destination. Run all tests

Re: curl gets into infinite redirect loop

2011-12-29 Thread Alex Vinnik
On Thu, Dec 29, 2011 at 9:52 AM, Daniel Stenberg dan...@haxx.se wrote: On Wed, 28 Dec 2011, Alex Vinnik wrote: Unearthed one more interesting redirect case at least for me :) ... curl gets into infinite redirect loop with a website and exists after hitting redirect limit. Here is how

Re: curl gets into infinite redirect loop

2011-12-29 Thread Alex Vinnik
; On Thu, Dec 29, 2011 at 9:52 AM, Daniel Stenberg dan...@haxx.se wrote: On Wed, 28 Dec 2011, Alex Vinnik wrote: Unearthed one more interesting redirect case at least for me :) ... curl gets into infinite redirect loop with a website and exists after hitting redirect limit. Here is how

curl gets into infinite redirect loop

2011-12-28 Thread Alex Vinnik
Hi everybody, Unearthed one more interesting redirect case at least for me :) ... curl gets into infinite redirect loop with a website and exists after hitting redirect limit. Here is how to reproduce it. Verbose libcurl output is below curl -ivL http://www.kqzyfj.com/click-0-10721226 In a

Re: libcurl stumbles on weird redirect location

2011-12-27 Thread Alex Vinnik
with ugly workaround like this for now. However it looks like Chrome has some room for an improvement as well. Do you know how submit a bug report to them? On Tue, Dec 27, 2011 at 12:07 PM, Daniel Stenberg dan...@haxx.se wrote: On Sun, 25 Dec 2011, Alex Vinnik wrote: You are right about that http

Cooke is not sent when url in location header has a port

2011-12-27 Thread Alex Vinnik
Hi everybody, Here is interesting case I run into with libcurl on ubuntu. Tried 7.19 and 7.24 Run this command curl -ivL http://www.kqzyfj.com/click-0-10577325 libcurl gets into infinite loop of redirects from server and stops reaching limit of 50 redirects. Try the same ulr with in Chrome and

Re: libcurl stumbles on weird redirect location

2011-12-27 Thread Alex Vinnik
Submitted one http://code.google.com/p/chromium/issues/detail?id=108709 Feel free to add any details On Tue, Dec 27, 2011 at 5:06 PM, Daniel Stenberg dan...@haxx.se wrote: On Tue, 27 Dec 2011, Alex Vinnik wrote: Now paste the url again and hit enter you will see well-formed Location header

Re: Cooke is not sent when url in location header has a port

2011-12-27 Thread Alex Vinnik
Magic. Thanks Daniel. How do I achieve similar effect using API? On Tue, Dec 27, 2011 at 5:30 PM, Daniel Stenberg dan...@haxx.se wrote: On Tue, 27 Dec 2011, Alex Vinnik wrote: curl -ivL http://www.kqzyfj.com/click-0-**10577325http://www.kqzyfj.com/click-0-10577325 This command won't

libcurl stumbles on weird redirect location

2011-12-24 Thread Alex Vinnik
Hi everybody, I am having a problem using libcurl in my Ruby app (Curb gem binds directly to libcurl). Specifically libcurl can't follow a weird redirect served by a web server. Server Location header Location: http://www.officedepot.com;jsessionid=EXsMRFMF5kwJo26qgOif31d:13ddq0tfm; doesn't