PDA

View Full Version : Could one control Girder through a browser??



Ron
October 13th, 2002, 12:55 PM
Give me a few minutes ;-) ( ehh hours )

Ron
October 13th, 2002, 12:55 PM
http://www.girder.nl/downloadn.php?Link=345

Give it a try. This basic plugin can be modified to do some very cool stuff. I don't have enough time to extend it do to everything that I'd like to, but you can control Girder the way you suggested already. Read the readme and look at the sample html and .gml files.

Have fun

Ron
October 13th, 2002, 12:55 PM
Okay, pay attention here..... this server has no security measures built in. If you don't use a firewall, dont' use this server. It doesn't matter that people don't know your IP address they WILL find it. Crackers just scan complete networks searching for a computer just like your own.

Having said that and you still want to try:

The plugin is just a webserver. It turns your computer into a webserver.
Put the example index.html in the c:\httpd\ and start girder. Open the plugin and enter c:\httpd\ into the directory box of the plugin. Then load the example .gml file from the package.

Now take a browser, ( you can sit anywhere you like as long as that computer can access the computer that is running Girder through port 80, or whatever port you set ).

type in the browser http://80.X.X.X You're now in the Girder server. You'll notice that Girder already received an event.

The parse error is because you where running that group by hand, this group must be run by the htmld event because it uses the Payload.

Ron
October 13th, 2002, 12:55 PM
This error happens when the plugin can open the file succesfully but cannot read from it. I'm clueless what causes this. Do you by any chance have the opened in some editor ? Did you download the updated plugin (0.1.1 ?)

Ron
October 13th, 2002, 12:55 PM
Glad to hear it works.

Ron
October 13th, 2002, 12:55 PM
This is a quick hack, it doesn't do anything but push files over the Http protocol no parsing whatsoever. If anyone wants to have a go at the plugin I'll give him/her the source.

Ron
October 13th, 2002, 12:55 PM
For those of you that where having problems with the webserver only operating on port 80 here is the fixed version (0.1.2)

http://www.girder.nl/temp/httpd.zip

Ron
October 13th, 2002, 12:55 PM
Add some meta tag to tell the browser to not cache the page. Or modify the plugin to send a header that tells the browser to not cache the page.

Ron
October 13th, 2002, 12:55 PM
Great!

Darmok
October 13th, 2002, 12:55 PM
This plugin works well, but I've noticed that if you click on the same link more than once the browser just pulls it up from the cache and doesn't send a command to girder again. Does anyone have any ideas as how to get around this, maybe to use a java script instead of a standard link that would trigger the girder event everytime rather than caching the page and failing to send an event to the girder web server?

Darmok
October 13th, 2002, 12:55 PM
That worked Ron! Thanks. I just inserted the tag <META HTTP-EQUIV="Pragma" CONTENT="no-cache">

worldrave
October 13th, 2002, 12:55 PM
Forget about the security drawbacks, i have a fix for that. I am basically
wondering if there's a way i could control maybe a few different commands through my cellphone's browser (using OpenWave's newest version. -it uses newest version of WAP) and control some stuff using a simple browser menu and selection, or maybe a Girder plugin that would allow me to communicate also.

There's gotta be a way, i DJ and broadcast using shoutcast, so i know that part of being able to communicate from the browser to my computer is possible. Any help or suggestions on this?? This would be VERY usefull!!!!

Example- One could use browser and select a girder command through browser selection and in effect would activate a multigroup that would open up video grabber hardware and then start recording (In my case, my Dazzle unit), then later send another command to use the multigroup to Stop recording command,then end program.

worldrave
October 13th, 2002, 12:55 PM
Ok, i've tried it. I got some 'Parse error at line one' message toward bottom of Girder window when I tried. Also had a question, what would i need to do to use this? Like, would i need to have the files on my hard drive and figure out how to use my provider's linking (where i have my Webpage stuff stored at) to route to my computer, or could i directly point to my computer if i know my computers (internet's ip address). I'm wanting to learn about this more. I know my address 66.*.*.* and could open a port in my 4 port router if need be, to make this all work if that's what it takes. Only i would know the address and the specific *.htm filename, so that's what i meant about not being to anal about security.
Any help on above questions would be of great appreciation. :D

worldrave
October 13th, 2002, 12:55 PM
I followed the instructions explicitly, but i am getting a "500: Web Service problem: Please contact the service provider." message.
I noticed in you previous response it can be done from any computer that can access the computer girder is running on (which i assume girder plugin is what is making the connection?) I don't get this, maybe i'm missing something else. I know not much at all about web servers, but if this is simple, all help will be appreciated again. Thanx Ron :D

worldrave
October 13th, 2002, 12:55 PM
:P Ok, using up to beta 10 (Girder3.2beta10) and only saw Internet Event Server, which i thought was the Plugin name, and is where i kept trying to setup. Today i d/l'd and installed beta 11. Now i went into Plugins to try to try one more time, and now saw HTTPD plugin!!!! So that's i think the problem why it wasn't working is i wasn't using the plugin at all, but rather some other plugin since the HTTPD plugin wasn't even showing properly in my plugin's directory, which it is now. I am trying as soon as i finish writing this. It should work now though. Sorry Ron, and i don't know why it didn't show plugin before in/up to beta10, but now i see it in beta11.
O well, it shows it now, thats all that matters.

worldrave
October 13th, 2002, 12:55 PM
All i get is posted message below. I'm doing everything as instructed. I don't get it. Aggghh. What could i be doing wrong?

The page cannot be displayed
The page you are looking for might have been removed or had its name changed.

--------------------------------------------------------------------------------

Please try the following:

Open the s: home page, and then look for links to the information you want.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

If you still cannot open the page, click the Internet Explorer
Search button to look for similar sites.




Internet Explorer

worldrave
October 13th, 2002, 12:55 PM
Well, after reading more about UPnP Forwarding through a designated port number i choose, i got your plugin working fine. I can't seem to access it through my cellphone, but it works through my computer's
http://*.*.*.*:**** config and my best friend at his house accessed it just fine too. Either way, that works for me for now for a few things actually. My phone browser is slightly different then HTML, so i assume that's were the communication problem is, and i've been reading into programming (or browser page maker programs available) WAP pages so i can really get into doing what i really want to do. But thanks to you to allow me to do exactly what i requested to do. Thanx again Ron. I really appreciate your incredible work with Girder, AND making that HTTPD plugin for me.

worldrave
October 13th, 2002, 12:55 PM
Well, for some reason after waiting a few minutes after running the software, i noticed it was working now. Once i exited out of Girder, it stopped working. (And NO, refreshing after starting using again will NOT work).Started up Girder, worked right away again. My suggestion to anyone else using this plugin. 'DO NOT THINK THIS PLUGIN IS NOT WORKING RIGHT IF NOT WORKING AT 1ST, WAIT A MINUTE OR SO IT WILL START WORKING FINE'/. This is not a problem with Girder. It took my a while to narrow down why it wasn't working, finding out, after narrowing the problem down for a while, it is just some wierd unexplainable glitch with the OS. After i waited the initial 1st time, it worked perfect afterward, even after stopping Girder (well, you can't just hit F9 to diable and re-enable it, that doesn't work) and starting up Girder it works right away everytime. If you have a router, you DO have to use UPnP Forwarding and use EXT. port the # you set up in the plugin and the INT. port use 80,and the protocol use TCP. Works great!!! Thanx again Ron!!!

Aeroschmelz
October 13th, 2002, 12:55 PM
The httpd Plugin is workin on port 80 (on this port is normally my apache webserver running), but when I change it, I get the same error as above. Can someone tell me a suitable port ?

Thanks
Aero

Aeroschmelz
October 13th, 2002, 12:55 PM
For me its working on 80 and 8080, but no more ports....and i am waiting very long :lol: I have an apache webserver with mysql, php and perl installed and additionally Norton Internet Security 2002 (tried it also with disabled firewall) and using a Dial Up Connection (T-ONLINE), , so no router, but if if I try:

http://localhost:1080 for example

i get everytime "site not found"

Oz
October 13th, 2002, 12:55 PM
Whew, this is an important plugin for me get functioning.

Forgive my top level questioning: The plugin is mentioned as BEING the web server. I understand that there is no reason to have another web server running...

But... if this is the case, I believe that there's no option for running and parsing PHP in the HTML? Or has anyone tried having IIS running in the same directory as the Girder plugin so that it parses the PHP as well? Or would that create a port sharing issue?

Maybe the PHP lives on the regular server and is parsed as usual, but the A HREF's can be a link to another port on which Girder is listening?

I'm going to start some of this testing... Oh yeah, I can only get it working on port 80 too. I've tried several options and F9's it over and over...

Thanks for any input anyone might have.
Oz

Oz
October 13th, 2002, 12:55 PM
THANKS! Now the testing with PHP on port 80 and Girder on port 8080 (sending info to both servers with one click) begins.

debennett2
March 31st, 2004, 08:20 AM
Has there been anymore work with this plugin? Currently, I have tried the internet Event Server way of doing things with both PHP and CGI...they both work but neither work completely intuitively (this is on IIS of course). I'd think there would be more demand for a web server/code that can handle sending commands via a webbrowser! I know I am not the only one that wants this. Thanks!

Promixis
March 31st, 2004, 09:22 AM
There have been some other threads on this in the last couple of months. I think if you search under html you will find them..

debennett2
March 31st, 2004, 09:55 AM
oh yeah, I am part of all of these threads I am sure. The problem is that none of these solutions is "perfect". I just thought I'd see how this approach might be adapted to serve our purposes better. Thanks.

genesis
August 10th, 2004, 06:15 PM
ICould you make this into an apache module instead. That way I wouldn't have to run two servers and secondly my GPRS service only alowes communication on port 80.

Ron
August 11th, 2004, 07:27 AM
That sounds great, how hard is that?