Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1108957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:09:37+00:00 2026-05-17T02:09:37+00:00

Nothing I’ve tried can get my code to submit correctly. Can anyone else figure

  • 0

Nothing I’ve tried can get my code to submit correctly. Can anyone else figure this out?

#!/usr/bin/perl

use WWW::Mechanize;


my $user = 'cowsaremyfriends@gmail.com';
my $pass  = 'hackswipe';
# Test account; don't worry


my $browser = WWW::Mechanize->new();
$browser->get("https://www.paypal.com/");
$browser->form_with_fields("login_email", "login_password");
$browser->field("login_email", $user);
$browser->field("login_password", $pass);
$browser->submit_form();
$browser->get("https://www.paypal.com/us/cgi-bin/webscr?cmd=_profile-api-add-direct-access");
##### Help here ---> Trying to submit form with default option selected #####
my $html = $browser->content;

print $html;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:09:37+00:00Added an answer on May 17, 2026 at 2:09 am

    It works for me, but when it comes to debugging web scrapers, etc, you should watch the HTTP transaction. That’s really easy to add since WWW::Mechanize is an LWP::UserAgent subclass:

    use WWW::Mechanize;
    
    my $browser = WWW::Mechanize->new();
    
    # See LWP::Debug
    $browser->add_handler("request_send",  sub { shift->dump; return });
    $browser->add_handler("response_done", sub { shift->dump; return });
    

    Now you can see what you send and what PayPal sends back.

    Often you can also use various HTTP sniffing tools, but those only work for things that you send in plaintext, so you’re out of luck here.

    In this case, however, PayPal is on to you. They know you are using a script. Part of the output I get is:

    <h2>Request API Credentials</h2>
    </div>
    <div id="messageBox"></div>
    <div id="main"><div class="layout1"><form action="https://www.paypal.com/us/cgi-bin/webscr?dispatch=5885d80a13c0db1f8e263663d3faee8dc18bca4c6f47e633b393e284a5f8a8f8" class="">
    <input type="hidden" name="cmd" value="_profile-api-add-direct-access"><input type="hidden" name="api_flow_origin" value=""><input type="hidden" name="show_switch" value="1"><input type="hidden" name="auth_type" value="ssl"><input type="hidden" name="api_username" value=""><input type="hidden" name="program_name" value=""><input type="hidden" name="program_id" value=""><input type="hidden" name="partner_name" value=""><input type="hidden" name="partner_id" value=""><input type="hidden" name="partner_code" value=""><p>API credentials consist of three elements:</p>
    <ul>
    <li>An API username</li>
    <li>An API password</li>
    <li>Either an API signature or an API SSL client-side certificate</li>
    </ul>
    <p>If you’re using a shopping cart or solution provider, ask whether you need an API signature or a certificate.</p>
    

    If you want to interact with PayPal through a program, you need to sign up for developer access.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Nothing in the body of this website is clickable. I can't figure out why.
i know nothing about ruby, can anyone help explaining what this script is doing
I see nothing documented on this, so does anyone know if it is possible
Why does nothing get printed out to the console? I have a server socket
Nothing shows on the screen, is this valid code below? I know theres a
Got nothing better to do this Christmas holiday, so I decided to try out
Regex really does nothing if i run this code: input contains: geeeeekdldn Regex.Replace(input, @g(.|\n)*?n,
I found nothing about how I can mix-in routes from another module, like this:
there's nothing much to explain, i'll straight get to the sample code: <?php $array[0]['a']
Assuming an ideal situation: nothing is paged out, all code is really well written

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.