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

James.Q.L shijialeee at yahoo.com
Tue Mar 7 18:53:27 PST 2006


--- Andy Lester <andy at petdance.com> wrote:
> >
> > 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.

I tried with that but no luck. it still spit out the html source instead of the plain text.

> 
> xoxo,
> Andy
> 

Qiang

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Chicago-talk mailing list