Path: csiph.com!usenet.pasdenom.info!news.franciliens.net!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'dynamically': 0.07; 'modify': 0.07; 'plenty': 0.07; 'http': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '>the': 0.16; 'ftp,': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'web?': 0.16; 'folder': 0.16; 'server,': 0.19; 'example': 0.22; 'setup,': 0.24; 'url:home': 0.24; 'push': 0.26; 'updating': 0.26; 'post': 0.26; 'header:X -Complaints-To:1': 0.27; 'dec': 0.30; 'page.': 0.31; 'serve': 0.31; 'url:wiki': 0.31; '+0100,': 0.31; 'url:wikipedia': 0.31; 'file': 0.32; 'text': 0.33; "can't": 0.35; 'there': 0.35; 'real- time': 0.36; 'subject:data': 0.36; 'charset:us-ascii': 0.36; 'url:org': 0.36; 'received:76': 0.38; 'remote': 0.38; 'server': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'itself': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'back': 0.62; "you'll": 0.62; 'real': 0.63; 'wish': 0.70; 'url:%1': 0.72; 'serial': 0.72; 'browser.': 0.78; 'transfer': 0.82; '(going': 0.84; 'datas': 0.84; 'either:': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: serial data and web Date: Tue, 09 Dec 2014 23:28:28 -0500 Organization: IISS Elusive Unicorn References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-29-89.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418185710 news.xs4all.nl 2900 [2001:888:2000:d::a6]:50703 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82257 On Tue, 09 Dec 2014 14:24:51 +0100, manduk declaimed the following: > >> "A web page"? >> Did you mean a Web server? > >ok I mean I would like to view the datas on a web page > >> Basically, you'll have to upload your data to a Web Server, then the >> server will serve your data. >> Depending on how your server is setup, you'll have to use FTP, RSync, >> HTTP GET or POST or PUT,... >> There is plenty of ways to upload some content. >> >not only upload in a folder of a webserver...I wish to see in real time >the datas in a public html page. >I get the data from serial port and then I put them in a remote page. >Which is the best way to transfer datas from a text file for example and >send it on web? Normal HTML is a "pull" technology... The client (browser) has to ask the server to send it the page. To have dynamically updating web page requires either: a web page that does a timed redirect back to itself (going to be very annoying as the page keeps reloading at whatever interval was given to the redirect), OR the use of Javascript to modify the HTML during the load, OR Javascript to modify pages in real-time -- cf: http://en.wikipedia.org/wiki/Dynamic_HTML and http://en.wikipedia.org/wiki/Ajax_%28programming%29 Python would only be involved in updating the data on the server -- on it's own it likely can't push updates to the browser. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/