Updated README with new information on cookie support
Changed one more incorrect path Turn off unit test injection by default
Showing
4 changed files
with
22 additions
and
36 deletions
@@ -156,7 +156,7 @@ More tests needed for: | @@ -156,7 +156,7 @@ More tests needed for: | ||
156 | foundCookie = YES; | 156 | foundCookie = YES; |
157 | success = [[cookie value] isEqualToString:@"This is the value"]; | 157 | success = [[cookie value] isEqualToString:@"This is the value"]; |
158 | STAssertTrue(success,@"Failed to store the correct value for a cookie"); | 158 | STAssertTrue(success,@"Failed to store the correct value for a cookie"); |
159 | - success = [[cookie domain] isEqualToString:@"asi"]; | 159 | + success = [[cookie domain] isEqualToString:@"allseeing-i.com"]; |
160 | STAssertTrue(success,@"Failed to store the correct domain for a cookie"); | 160 | STAssertTrue(success,@"Failed to store the correct domain for a cookie"); |
161 | success = [[cookie path] isEqualToString:@"/asi-http-request/tests"]; | 161 | success = [[cookie path] isEqualToString:@"/asi-http-request/tests"]; |
162 | STAssertTrue(success,@"Failed to store the correct path for a cookie"); | 162 | STAssertTrue(success,@"Failed to store the correct path for a cookie"); |
@@ -16,6 +16,8 @@ It provides: | @@ -16,6 +16,8 @@ It provides: | ||
16 | 16 | ||
17 | * Basic authentication (username and password) support, credentials are automatically for the duration of a session, and can be stored for later in the Keychain. | 17 | * Basic authentication (username and password) support, credentials are automatically for the duration of a session, and can be stored for later in the Keychain. |
18 | 18 | ||
19 | +* Cookie support - read and write cookies, and re-use them in other requests | ||
20 | + | ||
19 | * Based on NSOperation to make queuing requests and background operation easy | 21 | * Based on NSOperation to make queuing requests and background operation easy |
20 | 22 | ||
21 | * Basic unit tests (more to come!) | 23 | * Basic unit tests (more to come!) |
@@ -28,7 +30,6 @@ ASIHTTPRequest is my first open source Objective-C code. I hope to expand the cl | @@ -28,7 +30,6 @@ ASIHTTPRequest is my first open source Objective-C code. I hope to expand the cl | ||
28 | 30 | ||
29 | To do: | 31 | To do: |
30 | More unit tests | 32 | More unit tests |
31 | -Cookie support | ||
32 | Split up class - move form request stuff into subclass, and have simple implementation for main that sets request body according to data supplied by the subclass - this will allow other types of HTTP request (eg soap) | 33 | Split up class - move form request stuff into subclass, and have simple implementation for main that sets request body according to data supplied by the subclass - this will allow other types of HTTP request (eg soap) |
33 | Add SOAP example | 34 | Add SOAP example |
34 | See if Digest Authentication works | 35 | See if Digest Authentication works |
@@ -334,7 +334,7 @@ | @@ -334,7 +334,7 @@ | ||
334 | <key>_historyCapacity</key> | 334 | <key>_historyCapacity</key> |
335 | <integer>0</integer> | 335 | <integer>0</integer> |
336 | <key>bookmark</key> | 336 | <key>bookmark</key> |
337 | - <string>B500B5890E635BC700744D82</string> | 337 | + <string>B500B5BA0E635E0E00744D82</string> |
338 | <key>history</key> | 338 | <key>history</key> |
339 | <array> | 339 | <array> |
340 | <string>B5731B8B0E4310180008024F</string> | 340 | <string>B5731B8B0E4310180008024F</string> |
@@ -353,7 +353,7 @@ | @@ -353,7 +353,7 @@ | ||
353 | <string>B500B57F0E635BC700744D82</string> | 353 | <string>B500B57F0E635BC700744D82</string> |
354 | <string>B500B5800E635BC700744D82</string> | 354 | <string>B500B5800E635BC700744D82</string> |
355 | <string>B500B5810E635BC700744D82</string> | 355 | <string>B500B5810E635BC700744D82</string> |
356 | - <string>B500B5820E635BC700744D82</string> | 356 | + <string>B500B5910E635CE900744D82</string> |
357 | </array> | 357 | </array> |
358 | <key>prevStack</key> | 358 | <key>prevStack</key> |
359 | <array> | 359 | <array> |
@@ -374,21 +374,6 @@ | @@ -374,21 +374,6 @@ | ||
374 | <string>B567EF630E4EE4FC001E238F</string> | 374 | <string>B567EF630E4EE4FC001E238F</string> |
375 | <string>B5B3BC690E62DA0E0071D39F</string> | 375 | <string>B5B3BC690E62DA0E0071D39F</string> |
376 | <string>B5B3BC6C0E62DA0E0071D39F</string> | 376 | <string>B5B3BC6C0E62DA0E0071D39F</string> |
377 | - <string>B500B54E0E635A3200744D82</string> | ||
378 | - <string>B500B54F0E635A3200744D82</string> | ||
379 | - <string>B500B5500E635A3200744D82</string> | ||
380 | - <string>B500B5510E635A3200744D82</string> | ||
381 | - <string>B500B56D0E635B1C00744D82</string> | ||
382 | - <string>B500B5770E635B5500744D82</string> | ||
383 | - <string>B500B5780E635B5500744D82</string> | ||
384 | - <string>B500B5790E635B5500744D82</string> | ||
385 | - <string>B500B57A0E635B5500744D82</string> | ||
386 | - <string>B500B5830E635BC700744D82</string> | ||
387 | - <string>B500B5840E635BC700744D82</string> | ||
388 | - <string>B500B5850E635BC700744D82</string> | ||
389 | - <string>B500B5860E635BC700744D82</string> | ||
390 | - <string>B500B5870E635BC700744D82</string> | ||
391 | - <string>B500B5880E635BC700744D82</string> | ||
392 | </array> | 377 | </array> |
393 | </dict> | 378 | </dict> |
394 | <key>SplitCount</key> | 379 | <key>SplitCount</key> |
@@ -446,9 +431,9 @@ | @@ -446,9 +431,9 @@ | ||
446 | </array> | 431 | </array> |
447 | <key>TableOfContents</key> | 432 | <key>TableOfContents</key> |
448 | <array> | 433 | <array> |
449 | - <string>B500B5530E635A3200744D82</string> | 434 | + <string>B500B5930E635CE900744D82</string> |
450 | <string>1CE0B1FE06471DED0097A5F4</string> | 435 | <string>1CE0B1FE06471DED0097A5F4</string> |
451 | - <string>B500B5540E635A3200744D82</string> | 436 | + <string>B500B5940E635CE900744D82</string> |
452 | <string>1CE0B20306471E060097A5F4</string> | 437 | <string>1CE0B20306471E060097A5F4</string> |
453 | <string>1CE0B20506471E060097A5F4</string> | 438 | <string>1CE0B20506471E060097A5F4</string> |
454 | </array> | 439 | </array> |
@@ -582,10 +567,10 @@ | @@ -582,10 +567,10 @@ | ||
582 | <integer>5</integer> | 567 | <integer>5</integer> |
583 | <key>WindowOrderList</key> | 568 | <key>WindowOrderList</key> |
584 | <array> | 569 | <array> |
585 | - <string>B500B5570E635A3200744D82</string> | 570 | + <string>B500B5A20E635CFE00744D82</string> |
586 | - <string>B500B5580E635A3200744D82</string> | 571 | + <string>B500B5A30E635CFE00744D82</string> |
587 | - <string>1CD10A99069EF8BA00B06720</string> | ||
588 | <string>B5ABC8410E24CDE70072F422</string> | 572 | <string>B5ABC8410E24CDE70072F422</string> |
573 | + <string>1CD10A99069EF8BA00B06720</string> | ||
589 | <string>1C78EAAD065D492600B07095</string> | 574 | <string>1C78EAAD065D492600B07095</string> |
590 | <string>/Users/ben/asi-http-request/asi-http-request.xcodeproj</string> | 575 | <string>/Users/ben/asi-http-request/asi-http-request.xcodeproj</string> |
591 | </array> | 576 | </array> |
@@ -620,7 +605,7 @@ | @@ -620,7 +605,7 @@ | ||
620 | <key>Frame</key> | 605 | <key>Frame</key> |
621 | <string>{{0, 0}, {1440, 536}}</string> | 606 | <string>{{0, 0}, {1440, 536}}</string> |
622 | <key>RubberWindowFrame</key> | 607 | <key>RubberWindowFrame</key> |
623 | - <string>276 -189 1440 818 0 0 1920 1178 </string> | 608 | + <string>259 150 1440 818 0 0 1920 1178 </string> |
624 | </dict> | 609 | </dict> |
625 | <key>Module</key> | 610 | <key>Module</key> |
626 | <string>PBXNavigatorGroup</string> | 611 | <string>PBXNavigatorGroup</string> |
@@ -646,7 +631,7 @@ | @@ -646,7 +631,7 @@ | ||
646 | <key>Frame</key> | 631 | <key>Frame</key> |
647 | <string>{{0, 541}, {1440, 236}}</string> | 632 | <string>{{0, 541}, {1440, 236}}</string> |
648 | <key>RubberWindowFrame</key> | 633 | <key>RubberWindowFrame</key> |
649 | - <string>276 -189 1440 818 0 0 1920 1178 </string> | 634 | + <string>259 150 1440 818 0 0 1920 1178 </string> |
650 | </dict> | 635 | </dict> |
651 | <key>Module</key> | 636 | <key>Module</key> |
652 | <string>PBXBuildResultsModule</string> | 637 | <string>PBXBuildResultsModule</string> |
@@ -669,18 +654,18 @@ | @@ -669,18 +654,18 @@ | ||
669 | <key>TableOfContents</key> | 654 | <key>TableOfContents</key> |
670 | <array> | 655 | <array> |
671 | <string>B5ABC8410E24CDE70072F422</string> | 656 | <string>B5ABC8410E24CDE70072F422</string> |
672 | - <string>B500B5420E635A0700744D82</string> | 657 | + <string>B500B5950E635CE900744D82</string> |
673 | <string>1CD0528F0623707200166675</string> | 658 | <string>1CD0528F0623707200166675</string> |
674 | <string>XCMainBuildResultsModuleGUID</string> | 659 | <string>XCMainBuildResultsModuleGUID</string> |
675 | </array> | 660 | </array> |
676 | <key>ToolbarConfiguration</key> | 661 | <key>ToolbarConfiguration</key> |
677 | <string>xcode.toolbar.config.buildV3</string> | 662 | <string>xcode.toolbar.config.buildV3</string> |
678 | <key>WindowString</key> | 663 | <key>WindowString</key> |
679 | - <string>276 -189 1440 818 0 0 1920 1178 </string> | 664 | + <string>259 150 1440 818 0 0 1920 1178 </string> |
680 | <key>WindowToolGUID</key> | 665 | <key>WindowToolGUID</key> |
681 | <string>B5ABC8410E24CDE70072F422</string> | 666 | <string>B5ABC8410E24CDE70072F422</string> |
682 | <key>WindowToolIsVisible</key> | 667 | <key>WindowToolIsVisible</key> |
683 | - <true/> | 668 | + <false/> |
684 | </dict> | 669 | </dict> |
685 | <dict> | 670 | <dict> |
686 | <key>FirstTimeWindowDisplayed</key> | 671 | <key>FirstTimeWindowDisplayed</key> |
@@ -789,13 +774,13 @@ | @@ -789,13 +774,13 @@ | ||
789 | <key>TableOfContents</key> | 774 | <key>TableOfContents</key> |
790 | <array> | 775 | <array> |
791 | <string>1CD10A99069EF8BA00B06720</string> | 776 | <string>1CD10A99069EF8BA00B06720</string> |
792 | - <string>B500B5430E635A0700744D82</string> | 777 | + <string>B500B5960E635CE900744D82</string> |
793 | <string>1C162984064C10D400B95A72</string> | 778 | <string>1C162984064C10D400B95A72</string> |
794 | - <string>B500B5440E635A0700744D82</string> | 779 | + <string>B500B5970E635CE900744D82</string> |
795 | - <string>B500B5450E635A0700744D82</string> | 780 | + <string>B500B5980E635CE900744D82</string> |
796 | - <string>B500B5460E635A0700744D82</string> | 781 | + <string>B500B5990E635CE900744D82</string> |
797 | - <string>B500B5470E635A0700744D82</string> | 782 | + <string>B500B59A0E635CE900744D82</string> |
798 | - <string>B500B5480E635A0700744D82</string> | 783 | + <string>B500B59B0E635CE900744D82</string> |
799 | </array> | 784 | </array> |
800 | <key>ToolbarConfiguration</key> | 785 | <key>ToolbarConfiguration</key> |
801 | <string>xcode.toolbar.config.debugV3</string> | 786 | <string>xcode.toolbar.config.debugV3</string> |
@@ -951,7 +936,7 @@ | @@ -951,7 +936,7 @@ | ||
951 | <key>TableOfContents</key> | 936 | <key>TableOfContents</key> |
952 | <array> | 937 | <array> |
953 | <string>1C78EAAD065D492600B07095</string> | 938 | <string>1C78EAAD065D492600B07095</string> |
954 | - <string>B500B5550E635A3200744D82</string> | 939 | + <string>B500B5A00E635CFE00744D82</string> |
955 | <string>1C78EAAC065D492600B07095</string> | 940 | <string>1C78EAAC065D492600B07095</string> |
956 | </array> | 941 | </array> |
957 | <key>ToolbarConfiguration</key> | 942 | <key>ToolbarConfiguration</key> |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment