Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Problems with sending data over Socket SSL

by esskar (Deacon)
on Feb 28, 2004 at 18:32 UTC ( [id://332500]=note: print w/replies, xml ) Need Help??


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

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.
  • Comment on Re: Re: Re: Problems with sending data over Socket SSL

Replies are listed 'Best First'.
Re: Re: Re: Re: Problems with sending data over Socket SSL
by Anonymous Monk on Feb 28, 2004 at 23:35 UTC
    How do I find the javascript data?
How?
by onLOoker (Initiate) on Feb 29, 2004 at 21:00 UTC
    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

        Haha, those sneaky sobs! I figured it out. I knew they had to use some sort of value to submit that particular page. Therefore, I looked for the value within that javascript button. Then searched for the same value within that registration page. Guess what I have found? The field name for that value. All I had to do next was pop in the name pertaining to that value. Bam, registration success.

        But what I still need to do is get the io::socket::ssl to register the domain name. This works for LWP using useragent, but I'm still not good enough in PERL to implement LWP into my script that uses socket.

        For some reason, when I run the script using IO::Socket::SSL, the values of the query string is posted. I notice it because I printed out the query. I didn't really change the script a whole lot.

        Before it was IO::Socket::INET, now I changed it to IO::Socket:SSL.

        It submits it using INET, but won't work with SSL. The website uses HTTPS, therefore, INET won't work. It needs SSL. But when I run the script, it just freezes when it prints out the query string. It shouldn't be any error with the SSL connection, if so, it would print out an error message to the text file.

        Therefore, the problem must be within posting the data to the server for validation. How do you post data through IO::Socket:SSL? Is it the same as IO::Socket::INET?

        This is how I post it with IO::Socket::INET.

        $state{'username'} = $username; $state{'username'} = $password;

        username is the textfield name, $username is the variable that stores value. That in which is called from a external file that stores all the registration/personal info.

        So is this how you would do it for posting data using IO::Socket::SSL or different? If so, what is the correct way? Thanks again for the help... Damn this is fun!

        Are there a way to find out what query string the registrar is using? You know, what type of textfield names, values, submit button names, values are required to submit the data for registration. It's a pain in the ass to go through each registrar's registration page, and do a view source.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://332500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-19 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found