server proxi

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
boysky76
Posts: 48
Joined: Tue Aug 13, 2013 9:49 am

server proxi

Post by boysky76 » Mon Dec 16, 2013 2:46 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: server proxi

Post by Mark » Tue Dec 17, 2013 8:57 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

boysky76
Posts: 48
Joined: Tue Aug 13, 2013 9:49 am

Re: server proxi

Post by boysky76 » Tue Dec 17, 2013 10:29 am

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;) ;)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: server proxi

Post by Mark » Tue Dec 17, 2013 11:04 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

boysky76
Posts: 48
Joined: Tue Aug 13, 2013 9:49 am

Re: server proxi

Post by boysky76 » Tue Dec 17, 2013 11:19 am

thank you very much, I look for you

;);)

boysky76
Posts: 48
Joined: Tue Aug 13, 2013 9:49 am

Re: server proxi

Post by boysky76 » Fri Dec 20, 2013 6:30 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: server proxi

Post by Mark » Sun Jan 05, 2014 12:04 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply