[32344] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 3611 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Feb 14 06:09:20 2012

Date: Tue, 14 Feb 2012 03:09:04 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Tue, 14 Feb 2012     Volume: 11 Number: 3611

Today's topics:
        sorting unicode file under windows command line <ehabaziz2001@gmail.com>
    Re: WWW::Mechanize submit_form does not return expected <justin.1201@purestblue.com>
    Re: WWW::Mechanize submit_form does not return expected <justin.1201@purestblue.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Tue, 14 Feb 2012 02:34:02 -0800 (PST)
From: happytoday <ehabaziz2001@gmail.com>
Subject: sorting unicode file under windows command line
Message-Id: <c9e75f34-042c-4490-bfcb-8b9b1005ff4a@j14g2000vba.googlegroups.com>

SSBhbSB0cnlpbmcgdG8gc29ydCBhIGZpbGUgYWNjb3JkaW5nIHRvIHVuaWNvZGUgZmllbGQKKHBv
c2l0aW9uLGxlbmd0aCkgdW5kZXIgQmVya2VsZXkgdW5peCB2ZXJzaW9uICh3aW5kb3dzIHZlcnNp
b24pLiBJCnRyaWVkIG1zb3J0My5leGUgdXRpbGl0eSBidXQgY2FuIG5vdCBmaW5kIG1zb3J0My5l
eGUgd29ya2luZyB3aXRoIG1lLgpJcyB0aGVyZSBhIGNvbW1hbmQgbGluZSB1dGl0bGl0eSBvciBw
ZXJsL3NlZGF3ayBwcm9ncmFtIHRoYXQgc29ydHMgYQpmaWxlIGFjY29yZGluZyB0byB1bmljb2Rl
IGNvbHVtbiBVVEYtOCB3aXRoCnN0YXJ0X3Bvc2l0aW9uLGxlbmd0aF9wb3NpdGlvbi4KCkkgY2Fu
IG5vdCBpbnN0YWxsIGN5Z2luLgoKTXkgbGluZSBhcmUgbGlrZSB0aGlzIDoKCiAgICAgMSDDt9mG
wrfYucKkIMK52YbCtCDZhMKo2YPZhSDCt9mAwrHCpCDCt9mG2YPYjNmCwqQgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgIOKAmeKAmeKAkwrigKLigJTigJPar9qI2q8gMSAgIDEgICAx
ICAgMSAgICAgICAgIOKAmeKAmeKAk+KAouKAlOKAkwrar9qI2q8gICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIMK52YPYjNi12LkKwqRBICAg
ICAgIG1hc3Rlcl9maWxlX0hPTEQubG9nICAgICAgICAg2YPYjNi12LnCpCDDotqI2LrZhcKkIMK5
2KTZgiDDqNmC2YbCt9mAINi62YDCrti5wqQgw7fbgcKxCsK32YDCsdmAINijCtqv4oCYCiAgICAg
IDIgw7fCpNmF2KbCuSDZhNmG2KjYqiDZh9mC24HCsQrigJPigJ3igJTaqeKAlOKAk9qv2ojaryAx
ICAgMSAgIDEgICAyICAgICAgICAg4oCT4oCd4oCU2qnigJTigJMK2q/aiNqvICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICDCudmD2IzYtdi5
CsKkQSAgICAgICBtYXN0ZXJfZmlsZV9IT0xELmxvZyAgICAgICAgINmD2IzYtdi5wqQgw6LaiMK5
2KTZgCDCpMK5wqjYoiDYoyDigJ3aiAo=


------------------------------

Date: Tue, 14 Feb 2012 10:26:15 +0000
From: Justin C <justin.1201@purestblue.com>
Subject: Re: WWW::Mechanize submit_form does not return expected
Message-Id: <7fpp09-a1p.ln1@zem.masonsmusic.co.uk>

On 2012-02-10, J. Gleixner <glex_no-spam@qwest-spam-no.invalid> wrote:
> On 02/10/12 04:12, Justin C wrote:
>> The web-page I'm automating with mech is not returning the same data
>> that it returns when accessed with a browser. The java-script on the
>> form page, as far as I can see, does no more than sanitize what the user
>> enters, I can't see how it could possibly be telling the server that the
>> request is not a real person. I've got $mech->agent_alias('Mac Safari')
>> so it should think the request is from a real browser. I'm returning
>> input for all form fields (including the default values for the hidden
>> fields). I don't know where to go from here.
> [...]
>
> Firefox with the Firebug Plug-in might help you find if you're
> sending values differently. You easily can see what's sent and the 
> response in the Console tab.
>
> If that matches what you're sending, then possibly what's returned
> is processed by Javascript before being displayed to the browser, and
> that would be the next thing to examine.

Thank you for the suggestion J, but I've been bitten by FireFox plugins
before and avoid them now. The WSP suggestion is working for me.

   Justin.

-- 
Justin C, by the sea.


------------------------------

Date: Tue, 14 Feb 2012 10:36:57 +0000
From: Justin C <justin.1201@purestblue.com>
Subject: Re: WWW::Mechanize submit_form does not return expected
Message-Id: <93qp09-a1p.ln1@zem.masonsmusic.co.uk>

On 2012-02-10, Tad McClellan <tadmc@seesig.invalid> wrote:
>
> I'd use the "web scraping proxy" from AT&T:
>
>     http://www2.research.att.com/sw/tools/wsp/
>
> It logs HTTP requests/responses in the form of Perl code (UserAgent).
>
> Then we don't need to know what all the JS does, we just need to know
> how to construct the request we want...

Thank you, Tad, that's very useful. I think I've found a cookie. I'm
testing new code now.

   Justin.

-- 
Justin C, by the sea.


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 3611
***************************************


home help back first fref pref prev next nref lref last post