Created
February 20, 2010 04:00
-
-
Save jadeallenx/309495 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 03_http_requests-t.org Fri Feb 05 09:00:16 2010 | |
+++ 03_http_requests.t Fri Feb 19 22:03:42 2010 | |
@@ -31,7 +31,12 @@ | |
foreach my $client (@clients) { | |
my $ua = LWP::UserAgent->new; | |
- $ua->cookie_jar({ file => "$ENV{HOME}/.cookies.txt" }); | |
+ if ( $^O eq "MSWin32" ) { | |
+ $ua->cookie_jar({ file => "$ENV{TEMP}/.cookies.txt" }); | |
+ } | |
+ else { | |
+ $ua->cookie_jar({ file => "$ENV{HOME}/.cookies.txt" }); | |
+ } | |
my $res = $ua->get("http://127.0.0.1:$port/read_session"); | |
like $res->content, qr/name=''/, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment