When I get a bit of time, I'll test this out to see if it can work.
simulate a Users’ mouse actions
Collapse
X
-
-
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
-
-
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
-
-
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
-
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
Comment