simulate a Users’ mouse actions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #16
    When I get a bit of time, I'll test this out to see if it can work.

    Comment

    • chrissirhc
      New Member
      • Jan 2008
      • 13

      #17
      Thanks for your time.

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #18
        You're welcome.

        In order to maintain session across cfhttp requests, you need to maintain the same cookies. To do that, you will need to parse the cookies out of the response header of the first cfhttp request result and use them as parameters in the rest of the requests. The values that you will need to pass will be CFID and CFTOKEN.

        Comment

        • chrissirhc
          New Member
          • Jan 2008
          • 13

          #19
          I'll give it a shot. Thanks

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #20
            You might find this link useful. A bit more advanced than what you need, but it should give you a good idea about how to solve it.

            Comment

            • chrissirhc
              New Member
              • Jan 2008
              • 13

              #21
              The for the info, I have not gotten it to work as of yet. But I have a different question. Can I run PHP and CGI scripts on a Coldfusion server?

              Comment

              • acoder
                Recognized Expert MVP
                • Nov 2006
                • 16032

                #22
                I have both PHP and Coldfusion running on the same server. You will obviously have to set PHP up including permissions for sessions, etc.

                Why do you ask?

                Comment

                • chrissirhc
                  New Member
                  • Jan 2008
                  • 13

                  #23
                  I must admit Coldfusion has me a little frustrated.

                  Comment

                  • acoder
                    Recognized Expert MVP
                    • Nov 2006
                    • 16032

                    #24
                    Haha, at least you're honest! What is it that's most frustrating? I'd assume it has something to do with maintaining the session.

                    Comment

                    • chrissirhc
                      New Member
                      • Jan 2008
                      • 13

                      #25
                      Yes.. trying to keep the session between cfhttp post is not happening. I was able to automate an order using PERL; thats what sparked my earlier question about CGI scripts and PHP. Is there a howto on running PHP and CGI on a coldfusion server?
                      The logical question is: If I've had success with PERL why not run a different web server? A large part of my project is manipulating PDF files based on user input. As a programming neophyte, it is my opinion that Coldfusion offers the most straight forward approach to create custom PDF files on the fly. Ok.. the fact I am currently paying a monthly fee for Coldfusion server space might have something to do with it.

                      Comment

                      • acoder
                        Recognized Expert MVP
                        • Nov 2006
                        • 16032

                        #26
                        If you did pass the CFID and CFTOKEN values, it should be maintained. It is possible to keep the session intact as you can see from the link earlier (see post #20).

                        I don't know about Perl, but PHP and Coldfusion both work fine on the same server. I'm assuming by Coldfusion server, you just mean one running IIS or Apache. Is the monthly fee for Coldfusion hosting? If it is, you may have to ask your host if they support PHP.

                        Comment

                        Working...