Google Answers Logo
View Question
 
Q: perl lwp post ( No Answer,   0 Comments )
Question  
Subject: perl lwp post
Category: Computers > Internet
Asked by: virtanet-ga
List Price: $100.00
Posted: 17 Aug 2004 11:26 PDT
Expires: 24 Aug 2004 11:01 PDT
Question ID: 389053
Hi I need a perl script to enter the contact form for a user such as this, on ebay,

http://feedback.ebay.com/ws1/eBayISAPI.dll?ViewFeedback&userid=phildevon&item=5714621736&iid=5714621736&frompage=222

.. just as if "Contact Member" was selected from a browser.

then, send them a message, (ie: for if someone wins one of my
auctions, to automatically send them shipping details or ask for
payment if a few days pass after the auction) here

http://contact.ebay.com/ws1/eBayISAPI.dll

.. which is refered from the previous page.

This script, I found on google, logs me in,

#!/usr/bin/perl

use LWP; 
use HTTP::Request::Common; 
use HTTP::Cookies; 
 
$userid =       'userid'; 
$pass   =       'password'; 
 
$ua = LWP::UserAgent->new; 
$ua->cookie_jar(HTTP::Cookies->new(file=>'lwp-cookies',autosave=>1));

$req=$ua->request(GET 'http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll?SignIn');

$req=$ua->request(POST 'http://cgi3.ebay.com/aw-cgi/eBayISAPI.dll',
        [
        'MfcISAPICommand'       =>      'SignInWelcome',
        'siteid'                        =>      0, 
        'co_partnerId'          =>      2,
        'UsingSSL'                      =>      0,
        'ru'                            =>      '',
        'pp'                            =>      '',
        'pa1'                           =>      '',
        'pa2'                           =>      '',
        'pa3'                           =>      '',
        'i1'                            =>      -1,
        'pageType'                      =>      559,
        'userid'                        =>      $userid,
        'pass'                          =>      $pass,
        ]);

.., but when I try a similar POST, based on the parameter settings I
see in the source output from my browser, it does not "contact user"

$req=$ua->request(POST 'http://feedback.ebay.com/wsi1/eBayISAPI.dll',

[

'MfcISAPICommand' =>    'ReturnUserEmail',
'requested'     =>      'phildevon',
'frm'           =>      279,
'iid'           =>      -1,
'de'            =>      'off',
'redirect'      =>      0,
'contactsubmit' =>      'Contact Member',

]);

Thanks,
Matt
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy