Forum Moderators: coopster & phranque

Message Too Old, No Replies

LWP::UserAgent

Why does it hate spaces?

         

mdharrold

1:56 am on Jun 8, 2002 (gmt 0)

10+ Year Member



This will work:
$ua->agent(Mozilla_4.0_MSIE_6.0);

This won't:
$ua->agent(Mozilla 4.0 MSIE 6.0);

I've tried escaping the spaces and that didn't fix it either. Is there a reason why it chokes when there are spaces in there?

littleman

4:30 am on Jun 8, 2002 (gmt 0)



Try this:
$ua->agent('Mozilla 4.0 MSIE 6.0');

mdharrold

4:35 am on Jun 8, 2002 (gmt 0)

10+ Year Member



Thanks,
I thought of that about an hour ago.