Page 1 of 1

server proxi

Posted: Mon Dec 16, 2013 2:46 pm
by boysky76
Hi,

It's possible create a proxy server with lc-server?
basically I have a desktop application that I wish you would link to my website and server-side scripts that take data from another site, that is not the application to do this but the server side script and then pass them to the my application.

thank's

Re: server proxi

Posted: Tue Dec 17, 2013 8:57 am
by Mark
Hi,

It should be possible. I made a proxy as a desktop app and it works, although I still need to figure out a few things.

Kind regards,

Mark

Re: server proxi

Posted: Tue Dec 17, 2013 10:29 am
by boysky76
could you give me some more information, what are the commands that you used in the server-side script, you also know you explain to me why the controls liburllastrhheaders or liburldownloadtofile do not work in lc-server?
thanks for the replies;) ;)

Re: server proxi

Posted: Tue Dec 17, 2013 11:04 am
by Mark
Hi,

Apparently, the libUrl library isn't included in LiveCode server. I think you might copy this library from the revLibrary stack. I believe it is a button, which is included as a backscript. If you include the library, the libUrlLastRhHeaders function and other functions might work.

I can't check my scripts right now. I'll see what I can share with you later.

Kind regards,

Mark

Re: server proxi

Posted: Tue Dec 17, 2013 11:19 am
by boysky76
thank you very much, I look for you

;);)

Re: server proxi

Posted: Fri Dec 20, 2013 6:30 pm
by boysky76
hi,

Can you explain what you mean by copy "revLibrary stack. I believe it is a button, Which is included as a backscript. If you include the library, the libUrlLastRhHeaders function and other functions might work.2 ... Where do I copy it?, and I recall in some particular way in scirpt.
Did you find some examples of proxy?

thanks for support

Re: server proxi

Posted: Sun Jan 05, 2014 12:04 am
by Mark
Hello,

This is a link to my HttpProxy stack. It really is just an experiment and it doesn't work correctly. It shows what I tried and with a little tweaking, you might get it to work. I'd be very interested in any ideas you can come up with.

RevLibrary.rev is a stack. The short name of the stack is revLibary. If you type

Code: Select all

go stack "revLibrary"
in the message box and execute it, you will see the stack and the button revLibUrl.

Kind regards,

Mark