Pages: [1]
  Print  
Author Topic: [Solved] uldl?klCommand=loadVariables - POST not working!  (Read 3560 times)
0 Members and 1 Guest are viewing this topic.
Alen Alebic
Newbie
*
Posts: 21


« on: 04 July , 2008, 01:40:03 »

Hello,

it seems that uldl?klCommand=loadVariables doesn't send variables online.  Huh
I get the complete string in klRequest.txt that should be forwarded online but it doesn't happen (we don't get the variables logged into our database).

When I use GET method the string is the same and it gets logged but I need POST to get larger strings from FL out and online (I use REQUEST from php side and tried GET and POST to be sure).

I'm 99% sure there is a bug from your side, and I don't know how I didn't catch this earlier, now we're loosing valuable log details...I guess I was just checking klRequest.txt.

Please check this as soon as you can.

Thanks, Alen

PS: I'm using commercial version.


[EDIT marked as solved -Jukka]
« Last Edit: 23 July , 2008, 00:04:57 by jusahama » Logged
KL Admin
Moderator
Sr. Member
*****
Posts: 313


« Reply #1 on: 06 July , 2008, 13:47:15 »

Hi Alen,
there was a glitch related to POST method, which is fixed later.
-28 error was received, please check if that error is also in your case?

I will send you corrected version soon.

Cheers,
Jukka
Logged
Alen Alebic
Newbie
*
Posts: 21


« Reply #2 on: 06 July , 2008, 23:26:44 »

Hi Jukka,

I'm working with files received from you on 11th of June, and I don't think it's the error you're talking about.
- klError=0 (+ we get a variable sent back from our server)
- the call is written into our database but without the variables received (our php script is called but without variables)
- when I copy/paste the string from klRequest.txt into web browser it gets written into our database (so the error is not on that end)
- when I try the same call from FL but with GET method it works fine

As I said before it seems like what is written in klRequest.txt isn't what is being sent online. All of my variables are nicely written in klRequest.txt, they're just not forwarded online...

Please take a look at it as soon as you can.

Thanks,
Alen


PS: I see now there is a patch from 17th of June, I'll pack a basic version and post here the results of testing.

<edit>

Tested with the patch from 17th of June, same thing happens.
« Last Edit: 07 July , 2008, 00:31:46 by Alen Alebic » Logged
KL Admin
Moderator
Sr. Member
*****
Posts: 313


« Reply #3 on: 10 July , 2008, 08:45:59 »

I've a rising feeling, that you are (trying) sending also else variables in
the stage than klURL, though I don't fully get it from description above.

loadVariables -command does not send else variables in the stage when
POST -method is used, only variables embedded in klURL are possible
to be sent.
That is because the command uses HTTP GET currently only, unfortunately.
That might explain why loadVariables do not have desired effect in server side.
I think it would be possible to correct that, I'll add it to to-do list.

Please let me know if I understood the problem correctly.
Logged
Alen Alebic
Newbie
*
Posts: 21


« Reply #4 on: 11 July , 2008, 01:52:22 »

If anybody has similar problems...I got it to work (with Jukka's help  Wink )

Current solution is to add the variable/value pairs to the end of URL as you do with GET method and then call loadVariables with POST.

This was tested on E65 with FL1.1 and latest KL patches to date.

Cheers,
Alen
« Last Edit: 11 July , 2008, 01:58:00 by Alen Alebic » Logged
Pages: [1]
  Print  
 
Jump to: