Posts: 289
Threads: 44
Joined: Oct 2006
I'm trying:
http://myhost:9999/Test?1=50&2=50
Set the Value parameter to:
%(LVar:CQCActParm_1) still nothing
or
%(LVar:CQCActParm_2) still nothing
If I manually set the Value parameter to 50 it works fine. What should I change?
My Other web server is Dropbox.
Posts: 40,483
Threads: 491
Joined: Aug 2002
The name of the query parameters doesn't really matter, i.e. 1=, 2= all the same, they just need to have names for legal URL syntax.
Update your action to log the first two action parameters and see what you are getting.
Dean Roddey
Explorans limites defectum
Posts: 289
Threads: 44
Joined: Oct 2006
Dean Roddey Wrote:Update your action to log the first two action parameters and see what you are getting.
LOL. If I knew how to do that, I could probably figure out this problem.
I'm just trying to do the simplest possible version of passing one parameter to the HTTP trigger. Let's say my command is:
http://myhost:9999/Test?1=50
What would need to go into the value parameter? If I right click and choose Insert Action Parameter, I can choose 1 or 2 etc. You said the values go into 2. So I choose 2 and it inserts: %(LVar:CQCActParm_2). But that doesn't work. So is it inserting the wrong information, or is this a variable typing issue or ???.
My Other web server is Dropbox.
Posts: 40,483
Threads: 491
Joined: Aug 2002
There's an action command to log a message. Just insert one of those and pass it the %(LVar:CQCActParm_1) and %(LVar:CQCActParm_2) values as the message text to log.
You can remove or just disable the command when you don't need it anymore.
Dean Roddey
Explorans limites defectum
Posts: 40,483
Threads: 491
Joined: Aug 2002
Anything informative popping out of that?
Dean Roddey
Explorans limites defectum
Posts: 289
Threads: 44
Joined: Oct 2006
When HTTP Trigger Driver receives this:
http://myhost:9999/Test?1=50
%(LVar:CQCActParm_1) = Test
%(LVar:CQCActParm_2) = (blank)
(I set them both to String variables to confirm)
Are we sure the http command is properly formatted?
My Other web server is Dropbox.
Posts: 289
Threads: 44
Joined: Oct 2006
I also sent it directly to my computers local IP address to see if somehow my ddns service was stripping out the parameters. Same result.
My Other web server is Dropbox.
Posts: 3,415
Threads: 158
Joined: Jan 2006
Are you on the latest beta? Some of the older versions of CQC don't pick up the attributes after the question mark. But I think that was fixed. I am on a version with that issue right now (4.3.925)...
Posts: 289
Threads: 44
Joined: Oct 2006
Thanks wuench. I'm on 4.4.0. Maybe that behavior has resurfaced.
I also tried writing %(LVar:CQCActParm_2) to an integer variable and it gave me 0.
My Other web server is Dropbox.
Posts: 40,483
Threads: 491
Joined: Aug 2002
I presume he's on 4.4 since I got a license upgrade request from him today. It should be working in 4.4. What it does is set # as the separator value, and it rewrites the URL into a string like:
Test#50
and queues that up. Since the driver has # set as a separator, it should split them up as it does with the other trigger drivers.
I'll take another look at it.
Dean Roddey
Explorans limites defectum