Simulate Web Form Input.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JustSomeGuy

    Simulate Web Form Input.

    I need to log into a web page automatically.

    The web page has a password text field and a login button.
    (A form?)

    How do I simulate that a user logged in and entered the password
    and pressed the login button?

    TIA.


  • Randy Webb

    #2
    Re: Simulate Web Form Input.

    JustSomeGuy wrote:[color=blue]
    > I need to log into a web page automatically.[/color]

    Then do it.
    [color=blue]
    > The web page has a password text field and a login button.
    > (A form?)[/color]

    Thats what most use. A form that you submit.
    [color=blue]
    > How do I simulate that a user logged in and entered the password
    > and pressed the login button?[/color]

    Hmmmm. Maybe by filling in the username password and clicking the login
    button?

    Maybe a little more explanation of what you are trying to do. Of the
    three groups you posted to, only 2 can help you. You can't do what you
    are describing with plain HTML.

    --
    Randy
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • AngleWyrm

      #3
      Re: Simulate Web Form Input.

      "JustSomeGu y" <nope@nottellin g.com> wrote in message
      news:zoGud.4842 53$%k.323851@pd 7tw2no...[color=blue]
      > I need to log into a web page automatically.[/color]
      [color=blue]
      > The web page has a password text field and a login button.
      > (A form?)
      >
      > How do I simulate that a user logged in and entered the password
      > and pressed the login button?[/color]


      "Tim Tyler" <tim@tt1lock.or g> wrote in message news:I8KuFM.150 @bath.ac.uk...[color=blue]
      > I'm after some software that tracks down past postings on usenet, and
      > uses some heuristics to compose new messages along similar lines.
      >
      > The same sort of thing that people use to make computer-generated
      > bach compositions - IOW.
      > __________
      > |im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply.[/color]

      An insane child is posing as multiple users on usenet, "posting" clipped pages
      from some paranoid delusion on the Kennedies, etc. The purpose of the identity
      theft is to
      offend the real person into replying to a cross-posted message, to flood
      news.admin.net-abuse.email with irate users.

      The person desiring to cause misery to usenet users is now asking for assistance
      in programming the job. Consider this before helping: Do you actually want to
      flood the newsgroups you read with spam?

      -:|:-
      AngleWyrm


      Comment

      • Brian

        #4
        Re: Simulate Web Form Input.

        JustSomeGuy wrote:[color=blue]
        > I need to log into a web page automatically.[/color]

        Some browsers will let you store username/passwords for you. Is that
        what you want?
        [color=blue]
        > The web page has a password text field and a login button. (A form?)[/color]

        So it seems. Url?
        [color=blue]
        > How do I simulate that a user logged in and entered the password and
        > pressed the login button?[/color]

        Simulate how? I'm not clear on what you want. Perhaps you can cofigure
        your server to allow certain ip addresses access with a satisfy any command.

        Your post is off-topic for ciwah, so I've trimmed this response's x-posting.

        --
        Brian (remove "invalid" to email me)

        Comment

        • JustSomeGuy

          #5
          Re: Simulate Web Form Input.

          I'm not sure I know what to make of this response...


          Comment

          • Neal

            #6
            Re: Simulate Web Form Input.

            On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <nope@nottellin g.com> wrote:
            [color=blue]
            > I'm not sure I know what to make of this response...[/color]

            I think the poster is expressing dismay that you would be attempting to
            make a spider, or something like it, which would automatically fill in
            forms and log into sites, and is speculating on the nature of your
            motivations for doing such a thing.

            I was going to reply to your original post, but I didn't know enough about
            what you were trying to accomplish really, and wasn't sure what to ask to
            fill out the information. But certainly a bit more detail on what you're
            trying to do would help others give more relevant, perhaps even helpful,
            responses.

            Comment

            • JustSomeGuy

              #7
              Re: Simulate Web Form Input.


              "Neal" <neal413@yahoo. com> wrote in message
              news:opsiwp58dm 6v6656@news.ind ividual.net...[color=blue]
              > On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <nope@nottellin g.com> wrote:
              >[color=green]
              > > I'm not sure I know what to make of this response...[/color]
              >
              > I think the poster is expressing dismay that you would be attempting to
              > make a spider, or something like it, which would automatically fill in
              > forms and log into sites, and is speculating on the nature of your
              > motivations for doing such a thing.
              >
              > I was going to reply to your original post, but I didn't know enough about
              > what you were trying to accomplish really, and wasn't sure what to ask to
              > fill out the information. But certainly a bit more detail on what you're
              > trying to do would help others give more relevant, perhaps even helpful,
              > responses.[/color]

              Yes I guess that might be a 'security' issue. Basically I'm logging into a
              device that has a web interaface and I'm automating the interface. The
              first step is to log into the device. Hence the first form is a login.
              I have the html to this device and hence know the 'variables' that need to
              be set. I'm simply not sure of the HTML POST/GET procedure at this point.


              Comment

              • Bill Godfrey

                #8
                Re: Simulate Web Form Input.

                "JustSomeGu y" <nope@nottellin g.com> wrote:[color=blue]
                > I need to log into a web page automatically.
                > The web page has a password text field and a login button.
                > (A form?)[/color]

                wget is great for this sort of thing.

                Bill, for sym in $(cat symbs.txt); do for stat in $(cat stats.txt); do wget
                "http://user:pass@examp le.com/getdata.php?sym =$sym;stat=$sta t"; done; done

                Comment

                • Grant Wagner

                  #9
                  Re: Simulate Web Form Input.

                  comp.lang.javas cript FAQ - http://jibbering.com/faq
                  "JustSomeGu y" <nope@nottellin g.com> wrote in message
                  news:Z00vd.4733 80$Pl.75019@pd7 tw1no...[color=blue]
                  >
                  > "Neal" <neal413@yahoo. com> wrote in message
                  > news:opsiwp58dm 6v6656@news.ind ividual.net...[color=green]
                  > > On Sun, 12 Dec 2004 17:58:57 GMT, JustSomeGuy <nope@nottellin g.com>[/color][/color]
                  wrote:[color=blue][color=green]
                  > >[color=darkred]
                  > > > I'm not sure I know what to make of this response...[/color]
                  > >
                  > > I think the poster is expressing dismay that you would be attempting[/color][/color]
                  to[color=blue][color=green]
                  > > make a spider, or something like it, which would automatically fill[/color][/color]
                  in[color=blue][color=green]
                  > > forms and log into sites, and is speculating on the nature of your
                  > > motivations for doing such a thing.
                  > >
                  > > I was going to reply to your original post, but I didn't know enough[/color][/color]
                  about[color=blue][color=green]
                  > > what you were trying to accomplish really, and wasn't sure what to[/color][/color]
                  ask to[color=blue][color=green]
                  > > fill out the information. But certainly a bit more detail on what[/color][/color]
                  you're[color=blue][color=green]
                  > > trying to do would help others give more relevant, perhaps even[/color][/color]
                  helpful,[color=blue][color=green]
                  > > responses.[/color]
                  >
                  > Yes I guess that might be a 'security' issue. Basically I'm logging[/color]
                  into a[color=blue]
                  > device that has a web interaface and I'm automating the interface.[/color]
                  The[color=blue]
                  > first step is to log into the device. Hence the first form is a[/color]
                  login.[color=blue]
                  > I have the html to this device and hence know the 'variables' that[/color]
                  need to[color=blue]
                  > be set. I'm simply not sure of the HTML POST/GET procedure at this[/color]
                  point.



                  The above will work assuming that the device accepts a GET. The text of
                  "userName" and "userPasswo rd" would be the names of the inputs on the
                  login form. You may also need to include some additional hidden
                  parameters and values from the original form.

                  Note that if your device puts a unique session id into a hidden input on
                  the login form or something similar, then the above simply will not
                  work.

                  --
                  Grant Wagner <gwagner@agrico reunited.com>


                  Comment

                  • Mr.Clean

                    #10
                    Re: Simulate Web Form Input.

                    In article <zoGud.484253$% k.323851@pd7tw2 no>, nope@nottelling .com
                    says...[color=blue]
                    > I need to log into a web page automatically.
                    >
                    > The web page has a password text field and a login button.
                    > (A form?)
                    >
                    > How do I simulate that a user logged in and entered the password
                    > and pressed the login button?[/color]

                    More info is definately needed here.
                    What development language are you talking about?
                    Is this to be a standalone program or...?

                    Comment

                    • JustSomeGuy

                      #11
                      Re: Simulate Web Form Input.


                      "Mr.Clean" <mrclean@p&g.co m> wrote in message
                      news:1103143233 .8faa1e2c2db71c d6f1c7d5b41952a 2ee@teranews...[color=blue]
                      > In article <zoGud.484253$% k.323851@pd7tw2 no>, nope@nottelling .com
                      > says...[color=green]
                      > > I need to log into a web page automatically.
                      > >
                      > > The web page has a password text field and a login button.
                      > > (A form?)
                      > >
                      > > How do I simulate that a user logged in and entered the password
                      > > and pressed the login button?[/color]
                      >
                      > More info is definately needed here.
                      > What development language are you talking about?
                      > Is this to be a standalone program or...?[/color]

                      This is a c++ program for which html classes exist.


                      Comment

                      Working...