[Chicago-talk] WWW::Mechanize can't recognize a html file with no file extention.

Whitney Jackson whjackson at gmail.com
Mon Mar 6 22:41:42 PST 2006


> >
> > It would be nice if the ct method could take an argument that lets you
> > set the content type.  Or even better if you could change the  
> > default to
> > whatever you want.  I once had to use WWW::Mechanize against a strange
> > web server that refused to define 'Content-Type' and it was a real  
> > pain.
> 
> Hey, while poking, I realized you could do this:
> 
> $mech->update_html( $mech->content );
> 
> It'll set your content type.
> 
> xoxo,
> Andy
> 

Ahh...much less evil :)  Thanks!

Whitney



More information about the Chicago-talk mailing list