Skip Menu |

This queue is for tickets about the WWW-Myspace CPAN distribution.

Report information
The Basics
Id: 17587
Status: resolved
Priority: 0/
Queue: WWW-Myspace

People
Owner: Nobody in particular
Requestors: cpan [...] schwippy.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 0.09
  • 0.10
  • 0.11
  • 0.15
  • 0.16
  • 0.17
  • 0.18
  • 0.19
  • 0.20
  • 0.21
Fixed in: (no value)



Subject: add_to_friends >CAPTCHA Check
send_friend_request( ) There seems to be no check for page output after sending a friend request. This hinders the process of putting it in a loop, as the friend requesting is based on the captcha blocking. After 50 or so friends in a while loop, not checking the page after submiting the form leaves the loop thinking that everything is fine. Took me a while to realise that i was getting a captcha :) ######################################### ######################################### sub send_friend_request { # We pass unless my $pass = 1; foreach my $id ( @_ ) { my $res = $self->submit_form( 'http://collect.myspace.com/index.cfm?'. 'fuseaction=invite.addfriend_verify&'. 'friendID=' . $id, 1, '', {} ); unless ( $res ) { $pass = 0 } } return ( $pass ); }
The send_friend_request method has been re-written. Be sure to read the Changes file and the new documentation for the method. The new method returns status codes like post_comment does, and NOT a true/false value like before. Note that this means it is NOT BACKWARDS COMPATIBLE. It's rare for me to do that, but this method wasn't well written (in fact it was only written in the first place to aid the test suite). The method also accepts only one value. Again, see the docs for sample code. There is also a "send_friend_requests" method, which works, but the sample code is more robust.