Page 1 of 1

include the library

Posted: Sat Dec 21, 2013 11:16 pm
by boysky76
Hi,

how to include the library or libUrlLastRhHeaders liburldownloadtofile the LiveCode server?

can someone explain how to do?

thanx

Re: include the library

Posted: Tue Dec 24, 2013 10:44 pm
by Mark
Hi,

I'm not entirely sure that it will work, but you can try to copy the button libUrl of stack revLibrary to a new stack and save this on the server. In your server script, you include

Code: Select all

insert script of btn "libUrl" of stack /path/to/your/stack.rev" into back
and from then on you should be able to use the library. The question is whether it actually works. Give it a try and let me know.

Kind regards,

Mark

Re: include the library

Posted: Sun Dec 29, 2013 12:17 pm
by boysky76
thanks for the suggestion, but after doing this how do I call the function in the script created on the server, I have to use the command "includes stackname.rev" in the script?

Re: include the library

Posted: Sun Dec 29, 2013 11:49 pm
by Mark
Hi,

Just call the function as you always do in LiveCode.

Kind regards,

Mark

Re: include the library

Posted: Tue Jan 21, 2014 12:34 am
by boysky76
I have to re-create this function in LiveCode server:

libURLFormData-put ("username", pusername, "password", ppassword, "signin", "sign") into tData
tData post to url ("my_site_url")
put it into tHtmlPage
libUrlLastRHHeaders put () into tRHeaders-

  but I do not know how to include the library revlibrary.rev in LiveCode server, so that the commands liburlformdata and all other commands to work.

Can someone show me how to do?