Advertisement

02.14.2008 at 09:17PM PST, ID: 23165244
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

what is the problem? I can  see the source code using Firefox browser but can not use the get command

Tags: Perl, Can't get wwww.27months.com -- 400 URL must be absolute at get_test.cgi line 14
I run the program I I get the error

What is the problem. If I try to see the source code of www.27months.com using Firefox, everything looks ok. I can see the source code. However, If I use get command to see the source code It return erorror
Can't get wwww.27months.com -- 400 URL must be absolute at get_test.cgi line 14.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
use LWP 5.64; # Loads all important LWP classes, and makes
                #  sure your version is reasonably recent.
  my $browser = LWP::UserAgent->new;
 
  # Then later, whenever you need to make a get request:
  my $url = "wwww.27months.com";
 #my $url= 'http://freshair.npr.org/dayFA.cfm?todayDate=current';
 
 # my $url='http://www.mmc-shop.nl/cgi-bin/Shop/shop_art.cgi' ;
  my $response = $browser->get($url);
 
  die "Can't get $url -- ", $response->status_line
   unless $response->is_success;
 
  die "Hey, I was expecting HTML, not ", $response->content_type
   unless $response->content_type eq 'text/html';
     # or whatever content-type you're equipped to deal with
 
  # Otherwise, process the content somehow:
        print $response->content;
        sleep 4;
  if($response->content =~ m/jazz/i) {
  print $response->content;
    print "They're talking about jazz today on Fresh Air!\n";
  } else {
    print "Fresh Air is apparently jazzless today.\n";
  }
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: thanhtuan1411
Solution Provided By: hielo
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
02.14.2008 at 09:25PM PST, ID: 20899578

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 09:47PM PST, ID: 20899646

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 10:01PM PST, ID: 20899697

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 12:50PM PST, ID: 20905753

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 12:53PM PST, ID: 20905780

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 01:15PM PST, ID: 20905994

Rank: Sage

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628