Daniel Stenberg <[email protected]> wrote: > On Sun, 4 May 2014, Fabian Keil wrote: > > > I'd prefer it to fail after checking $? (bad_news() is a die() wrapper), > > but > > it actually failed in die_unless_page_contains_pattern() and thus it looked > > like the server changed the login procedure (again). > > Are you suggesting a patch similar to this (see attachment)?
Yes, but in addition to the message I think curl should also exit with CURLE_NOT_BUILT_IN without actually making the request. I haven't tested the patch, but it looks to me like curl would still make the request, ignore cookies and possibly exit with CURLE_OK. Fabian
signature.asc
Description: PGP signature
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
