My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Older

  • Oct 09, 2009
    r13 (Thanks to David Moe, we now invalidate our port before relea...) committed by dan94501   -   Thanks to David Moe, we now invalidate our port before releasing it. Solves a long-standing leak.
    Thanks to David Moe, we now invalidate our port before releasing it. Solves a long-standing leak.
  • Mar 30, 2009
    issue 3 (Some cookies are not parsed correctly.) reported by robotspacer   -   What steps will reproduce the problem? 1. Load a site like checkout.google.com that does not include a space after the semicolon. 2. Parse the cookies using parsedCookies What is the expected output? What do you see instead? The result should look like the example: B = { value = "96lr6csucjt99&b=2"; expires = "Thu, 15 Apr 2010 20:00:00 GMT"; path = "/"; domain = ".yahoo.com"; } Instead it looks something like this: B = { value = "96lr6csucjt99&b=2;Expires:Thu, 15 Apr 2010 20:00:00 GMT;Path:/;Domain:.yahoo.com"; } What version of the product are you using? On what operating system? CURLHandle 2.0 on Mac OS X 10.5.6. Please provide any additional information below. I was able to solve this problem by altering the parsedCookies method: - (NSDictionary *)parsedCookies { NSMutableDictionary *result = [NSMutableDictionary dictionary]; NSEnumerator *theEnum = [self objectEnumerator]; NSString *cookieLine; while (nil != (cookieLine = [theEnum nextObject]) ) { NSArray *components = [cookieLine componentsSeparatedByString:@";"]; NSEnumerator *theEnum = [components objectEnumerator]; NSString *thePair; BOOL firstOne = YES; // the first one is handled specially NSMutableDictionary *attributesDictionary = [NSMutableDictionary dictionary]; while (nil != (thePair = [theEnum nextObject]) ) { NSRange whereEquals = [thePair rangeOfString:@"="]; if (NSNotFound != whereEquals.location) { NSString *key = [thePair substringToIndex:whereEquals.location]; NSString *val = [thePair substringFromIndex:whereEquals.location + 1]; if (firstOne) { [result setObject:attributesDictionary forKey:key]; [attributesDictionary setObject:val forKey:@"value"]; firstOne = NO; } else { key = [key stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; key = [key lowercaseString]; [attributesDictionary setObject:val forKey:key]; } } } } return result; } The specific changes are: Changed: NSArray *components = [cookieLine componentsSeparatedByString:@";"]; Added: key = [key stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; Added: key = [key lowercaseString]; I didn't thoroughly test to see if the last line was necessary, but I noticed Google capitalizes Expires, Path, etc. and figured it was best to keep them consistent.
    What steps will reproduce the problem? 1. Load a site like checkout.google.com that does not include a space after the semicolon. 2. Parse the cookies using parsedCookies What is the expected output? What do you see instead? The result should look like the example: B = { value = "96lr6csucjt99&b=2"; expires = "Thu, 15 Apr 2010 20:00:00 GMT"; path = "/"; domain = ".yahoo.com"; } Instead it looks something like this: B = { value = "96lr6csucjt99&b=2;Expires:Thu, 15 Apr 2010 20:00:00 GMT;Path:/;Domain:.yahoo.com"; } What version of the product are you using? On what operating system? CURLHandle 2.0 on Mac OS X 10.5.6. Please provide any additional information below. I was able to solve this problem by altering the parsedCookies method: - (NSDictionary *)parsedCookies { NSMutableDictionary *result = [NSMutableDictionary dictionary]; NSEnumerator *theEnum = [self objectEnumerator]; NSString *cookieLine; while (nil != (cookieLine = [theEnum nextObject]) ) { NSArray *components = [cookieLine componentsSeparatedByString:@";"]; NSEnumerator *theEnum = [components objectEnumerator]; NSString *thePair; BOOL firstOne = YES; // the first one is handled specially NSMutableDictionary *attributesDictionary = [NSMutableDictionary dictionary]; while (nil != (thePair = [theEnum nextObject]) ) { NSRange whereEquals = [thePair rangeOfString:@"="]; if (NSNotFound != whereEquals.location) { NSString *key = [thePair substringToIndex:whereEquals.location]; NSString *val = [thePair substringFromIndex:whereEquals.location + 1]; if (firstOne) { [result setObject:attributesDictionary forKey:key]; [attributesDictionary setObject:val forKey:@"value"]; firstOne = NO; } else { key = [key stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; key = [key lowercaseString]; [attributesDictionary setObject:val forKey:key]; } } } } return result; } The specific changes are: Changed: NSArray *components = [cookieLine componentsSeparatedByString:@";"]; Added: key = [key stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; Added: key = [key lowercaseString]; I didn't thoroughly test to see if the last line was necessary, but I noticed Google capitalizes Expires, Path, etc. and figured it was best to keep them consistent.
  • Jan 05, 2009
    issue 2 (Patch for enable CURLTester to test PUT option.) reported by ma...@kagi.com   -   Attached is a patch to allow for tesitng HTTP/HTTPS PUT option in CURL and reporting stats on the upload. Changes are in public domain. Mark Fleming.
    Attached is a patch to allow for tesitng HTTP/HTTPS PUT option in CURL and reporting stats on the upload. Changes are in public domain. Mark Fleming.
  • Dec 10, 2008
    issue 1 (app using CurlHandle: Pukka) Status changed by dan94501   -   Cool, thanks! I've added you to the list....
    Status: Fixed
    Cool, thanks! I've added you to the list....
    Status: Fixed
  • Dec 10, 2008
    CURLHandle 2.0.zip (CURLHandle 2.0 sources [using the source tab is preferred, t...) file uploaded by dan94501
  • Dec 10, 2008
    Built CURLHandle 2.0.zip (Built CURLHandle 2.0) file uploaded by dan94501
  • Dec 10, 2008
    r12 (more minor changes, ready to build 2.0 now) committed by dan94501   -   more minor changes, ready to build 2.0 now
    more minor changes, ready to build 2.0 now
  • Dec 10, 2008
    r11 (Gettinng rid of pre-build frameworks) committed by dan94501   -   Gettinng rid of pre-build frameworks
    Gettinng rid of pre-build frameworks
  • Dec 10, 2008
    r10 (seems to be building now. Removing built products for now, ...) committed by dan94501   -   seems to be building now. Removing built products for now, maybe we will only put them into the official releases?
    seems to be building now. Removing built products for now, maybe we will only put them into the official releases?
  • Dec 10, 2008
    r9 (Updated to xcode project files Added ResumableHTTPUploader ...) committed by dan94501   -   Updated to xcode project files Added ResumableHTTPUploader and -setPutFile:resumeUploadFromOffset: courtesy of Jonathan "Wolf" Rentzsch
    Updated to xcode project files Added ResumableHTTPUploader and -setPutFile:resumeUploadFromOffset: courtesy of Jonathan "Wolf" Rentzsch
  • Dec 10, 2008
    r8 (new name that will allow test app to compile) committed by dan94501   -   new name that will allow test app to compile
    new name that will allow test app to compile
  • Dec 10, 2008
    r7 (clean up the tester project) committed by dan94501   -   clean up the tester project
    clean up the tester project
  • Dec 10, 2008
    r6 (Remove all attempts to be 10.1 compatible. Update documenta...) committed by dan94501   -   Remove all attempts to be 10.1 compatible. Update documentation slightly.
    Remove all attempts to be 10.1 compatible. Update documentation slightly.
  • Dec 10, 2008
    issue 1 (app using CurlHandle: Pukka) reported by codesorcery   -   I make use of CurlHandle in Pukka. It really saved my bacon when Leopard first came out and NSURLConnection was extremely crashy when used with HTTPS & authentication. Expect something off of your wishlist soon, too :-) http://codesorcery.net/pukka
    I make use of CurlHandle in Pukka. It really saved my bacon when Leopard first came out and NSURLConnection was extremely crashy when used with HTTPS & authentication. Expect something off of your wishlist soon, too :-) http://codesorcery.net/pukka
  • Dec 10, 2008
    r5 (initial checkin at google code of the historical 1.9 version) committed by dan94501   -   initial checkin at google code of the historical 1.9 version
    initial checkin at google code of the historical 1.9 version
  • Dec 10, 2008
    PageName Wiki page deleted by dan94501
  • Dec 10, 2008
    CURLHandle_1.9.tgz (CURLHandle 1.9) file uploaded by dan94501
  • Dec 10, 2008
    HistoricalReleases (Earlier releases of CurlHandle) Wiki page added by dan94501
  • Dec 10, 2008
    PageName Wiki page added by dan94501
  • Dec 10, 2008
    Project curlhandle created by danielobrien   -   curlhandle
    curlhandle
 
Hosted by Google Code