in reply to Re: Problems with sending data over Socket SSL
in thread Problems with sending data over Socket SSL

I have written a script with LWP that registers a domain name. But based on that registrar that I'm using, I couldn't figure out how to send my personal information for registration. I could send uername, password, domain name, but not my personal information for the final registration. It's probably due to the submit button written in javascript. The only way to do it is to post it instead of getting it...

However, I can't seem to make use of the post alone. It only works with getting the webpage, then posting the values. Otherwise, it won't work if used post alone... Is this how LWP works? Get the content then send the data? Below is the script that submits my personal information for registration.

<input type="image" name="" src="images/btn_purchase.gif" alt="Buy now +" border="0" tabindex="16" onclick="return checkKey('success');">
As you can see, the onclick, submits it. I'm guessing that if I use post, I won't have to worry about submitting it. It will automatically submit it. Am I correct. Thanks.

Replies are listed 'Best First'.
Re: Re: Re: Problems with sending data over Socket SSL
by esskar (Deacon) on Feb 28, 2004 at 18:32 UTC
    hi. well, can you actually show us the javascript data... maybe this script is setting an addional field or does other fancy stuff before it ist posting the data to the server.
      How do I find the javascript data?
      How do I find the javascript data?

        First you get a clue. Then you read the HTML. You will either see the function pointed to by the onClick handler on the submit button or a tag(s) like <script language="javascript" src="/js/review.js"></script>

        If you can't find something that says function WhateverItWasCalled you will need to get the included external javascript files and trawl through them. That is the review.js file in the example above.

        cheers

        tachyon