Changeset 22992 for lang/perl/Moxy
- Timestamp:
- 11/08/08 11:11:00 (2 months ago)
- Location:
- lang/perl/Moxy/trunk
- Files:
-
- 3 modified
-
Makefile.PL (modified) (1 diff)
-
TODO (modified) (1 diff)
-
lib/Moxy.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Moxy/trunk/Makefile.PL
r22988 r22992 30 30 requires 'Path::Class'; 31 31 requires 'HTTP::Session' => 0.09; 32 requires 'HTTP::Cookies'; 32 33 33 34 test_requires('Test::More'); -
lang/perl/Moxy/trunk/TODO
r22990 r22992 9 9 - 認証まわりを flexible にしたい 10 10 -- OpenID に対応するとか 11 - cookie support12 -- willcom サポート的に必要だな13 -- 16:40 kan: でも、Moxy側でユーザを認証できてれば、なんとやれるんじゃない?14 -- 16:40 kan: HTTP clientとしての挙動をエミュレーションすれば15 11 - ezweb の DisplaySize が現在ブラウジング中画像表示サイズになっているが、これは壁紙画像表示サイズであるべき 16 12 -
lang/perl/Moxy/trunk/lib/Moxy.pm
r22991 r22992 16 16 use HTML::TreeBuilder::XPath; 17 17 use HTML::TreeBuilder; 18 use HTTP::Cookies; 18 19 use HTTP::Session; 19 20 use LWP::UserAgent; … … 318 319 } 319 320 $req->remove_header('Accept-Encoding'); # I HATE gziped CONTENT 321 $req->remove_header('Cookie'); # remove Cookie from the client 322 323 my $cookie_jar = $args{session}->get('cookies') || HTTP::Cookies->new(); # load cookies 324 if ($mobile_attribute->is_docomo) { 325 undef $cookie_jar; # docomo phone doesn't support cookies 326 } 320 327 321 328 # do request … … 325 332 protocols_allowed => [qw/http https/], 326 333 parse_head => 0, 334 cookie_jar => $cookie_jar, 327 335 ); 328 336 … … 331 339 my $t2 = Time::HiRes::gettimeofday(); 332 340 $self->response_time( $t2-$t1 ); 341 342 $args{session}->set('cookies' => $cookie_jar); # save cookies 333 343 334 344 for my $hook ( 'security_filter', 'response_filter', "response_filter_$carrier", 'render_location_bar' ) {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)