Netfirms ADVANTAGE Web Hosting - Get 250GB Disk Space and 2000GB Monthly Data Transfer, 2 FREE domain names, NetObjects Fusion Web Design Software, Shopping Cart, Photo Gallery, MySQL Databases, Discussion Board, FrontPage Exts., SSL, PHP, CGI, POP Mail, WebStats and 24/7 World Class Support. "One of the best values on the Web for small business" - BusinessWeek


Go Back   FreeWebspace.net > Free webhosting > Free hosting requests

Reply
 
Thread Tools Display Modes
Old August 6th, 2009, 09:31   #1
rpalmer68
Junior Member
 
Join Date: Aug 2009
Posts: 2
rpalmer68 is an unknown quantity at this point
Looking for host with MySQL, Python with non-standard port

I have a fairly specific request;

I need to run a very simple python script that looks up a url in a MySQL database opens this url and then outputs the resulting text to my browser.

All sounds simple I know, but the issue is the url I need to open from my script is using a non-standard port and all hosts I've tried won't open the port for "security reasons".

The URL I would want to open is something like (the long number at the end dynamically changes at random times - hence the SQL DB to keep track of it);
http://sim5587.agni.lindenlab.com:12...e-e82fe341569e

(For those who want to know, it's a inworld HTTP server within Second Life.)

All I do is read a max of 1kb of text from the URL and then parse this in my script.

So is there anybody willing to let me use your hosting service with basically no storage requirements, and bugger all bandwidth but allow port 12046 to be open for my outbound requests?


Thanks
Richard
rpalmer68 is offline   Reply With Quote
Old August 6th, 2009, 10:43   #2
Schmarvin
Dew! Mountain Dew
 
Join Date: Jun 2007
Location: United States
Posts: 2,406
Schmarvin is just really niceSchmarvin is just really niceSchmarvin is just really niceSchmarvin is just really nice
Quote:
Originally Posted by rpalmer68 View Post
I have a fairly specific request;

I need to run a very simple python script that looks up a url in a MySQL database opens this url and then outputs the resulting text to my browser.

All sounds simple I know, but the issue is the url I need to open from my script is using a non-standard port and all hosts I've tried won't open the port for "security reasons".

The URL I would want to open is something like (the long number at the end dynamically changes at random times - hence the SQL DB to keep track of it);
http://sim5587.agni.lindenlab.com:12...e-e82fe341569e

(For those who want to know, it's a inworld HTTP server within Second Life.)

All I do is read a max of 1kb of text from the URL and then parse this in my script.

So is there anybody willing to let me use your hosting service with basically no storage requirements, and bugger all bandwidth but allow port 12046 to be open for my outbound requests?


Thanks
Richard
I'm in agreement with other hosts who won't open the port. It is a security risk to open any ports. Besides, what would you need an outbound request for? You just need to read information from a url, right?

Please correct me if I'm wrong, you want the following:
- Grab information URL
- Read the info
- Show the information to your browser

No, for the last one, do you mean that you want it displayed on a page? Or do you want it displayed on the browser itself, like a Firefox plugin?
__________________
Sean Marvin || Cross Industries - Affordable technology solutions
E-mail: contact@x-ind.com || Phone: (843) 754-3630
X-Blogger - Free blog hosting, powered by Wordpress
Cross into dreams...
Schmarvin is offline   Reply With Quote
Old August 6th, 2009, 12:12   #3
kkwin
Member
 
Join Date: May 2007
Posts: 50
kkwin is an unknown quantity at this point
Em, i had answered this question as provider. No one will open special port for you unless you host your own server.
kkwin is offline   Reply With Quote
Old August 6th, 2009, 16:10   #4
rpalmer68
Junior Member
 
Join Date: Aug 2009
Posts: 2
rpalmer68 is an unknown quantity at this point
Quote:
Originally Posted by Schmarvin View Post

Please correct me if I'm wrong, you want the following:
- Grab information URL
- Read the info
- Show the information to your browser

No, for the last one, do you mean that you want it displayed on a page? Or do you want it displayed on the browser itself, like a Firefox plugin?
Just display the information on a page.

Minus the MySQL stuff, this is all my script is doing...
Code:
#!/usr/bin/env python

import os, string, sys, urllib
from cgi import *

def Main():

      url="http://sim5587.agni.lindenlab.com:12046/cap/12c2ea33-2ff2-af64-0442-2e900833ea11"
      sock=urllib.urlopen(url) # Open HTTP-IN URL data
      htmldata=sock.read()   # Read data        
      sock.close()
      print("<center><font face=Arial><h1>Online Web Service</h1>")
      print("<hr>")
      if htmldata !="":
          ar=htmldata.split(',')
          print(ar[0] + "<br>")
          print("Last Updated on " + ar[1] + "</h2></center>")
          print("<hr>")
          print("<h2>Currently Online</h2>")
          for x in range(2,len(ar)):
              print(ar[x] + "<br>")
              
      else:
          print("Unable to retrieve data from in-world.")
          print("<hr>")
           

Main()
The issue is the url only retuens text not html, so there is no formatting so it displays as one line of text on a page... I just want to display it nicely.

Richard

[EDIT] I'm happy to put a text link at the bottom of the page. At this stage I have over 700 users which a good percentage will access the script at least once a day, and users grow by about 20 a month so there will be some potential exposure.

Last edited by rpalmer68; August 6th, 2009 at 18:31.
rpalmer68 is offline   Reply With Quote
Old August 6th, 2009, 18:08   #5
Schmarvin
Dew! Mountain Dew
 
Join Date: Jun 2007
Location: United States
Posts: 2,406
Schmarvin is just really niceSchmarvin is just really niceSchmarvin is just really niceSchmarvin is just really nice
Well, I would host you, but I cannot open a port on my server. Sorry.
__________________
Sean Marvin || Cross Industries - Affordable technology solutions
E-mail: contact@x-ind.com || Phone: (843) 754-3630
X-Blogger - Free blog hosting, powered by Wordpress
Cross into dreams...
Schmarvin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Python/CGI Web Hosting Package - cPanel - PHP - MYsql stonerocket Free hosting offers 0 February 21st, 2009 05:52
Free Python/CGI Web Hosting Package - cPanel - PHP - MYsql - .hta access stonerocket Free hosting offers 0 January 1st, 2009 08:38
Free Python/CGI Web Hosting Package - cPanel - PHP - MYsql stonerocket Free hosting offers 0 October 28th, 2008 19:21
Need free host..(Req: 1 MySQL,SSH access, no port blocking, PHP, Perl) netddos Free hosting requests 8 August 9th, 2005 05:33
Port Mysql heukw Free hosting requests 6 February 23rd, 2002 07:18


                                                       
  
  Free webhosting | News | Search free hosts | Free file hosting · Free image hosting | Forums | Advertising Info | Contact Us


        Copyright © 1996-2009 Per Olof Sandholm. All rights reserved. Privacy Statement

All times are GMT -5. The time now is 08:45.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 1996-2009 Per Olof Sandholm