Questions tagged [python-server-pages]
32 questions
3
votes
1 answer
Python function to check if still alive
I am running 2 python scripts: one server script and one client(both Windows 10),who connects to the server.
If for example the connection is lost because the client system restarts and the python script does have autorun by startup, how can I…

Augurkenplukker12
- 179
- 1
- 7
3
votes
0 answers
Passing a string from C to Python, what does the Python server see it as?
Possible Duplicate:
How to get a python server to convert recvline to a string?
I can easily communicate from my C client to my python server. The server can print what my client sends it, but for some reason doesn't see the data type as a…

Nicolas Atwood
- 51
- 4
2
votes
1 answer
How to POST a blob audio to Python Server using AJAX and jQuery?
I'm working on an audio web application that records the user's voice and then post as a .wav/.mp3 file to the server. I have some code to POST my audio blob in my .js file but I'm not sure if it is correct. I'm also not sure how to receive the blob…

Coder123
- 21
- 2
2
votes
1 answer
TCP threaded python server not handling signals as expected
I am required to run a server which processes at max 3 requests at a time. My design is I have a TCP server running and will have 3 threads running to process those requests. The server will accept requests and will pass those requests to threads…

Vinay Pai
- 443
- 1
- 5
- 13
2
votes
1 answer
psp (python server pages) code under mod_wsgi?
Is there some way to run .psp (python server pages) code under apache + mod_wsgi? While we are moving towards newer wsgi based frameworks we still have some legacy code written in psp which runs under mod_python.
We'd like to be able to run it on…

shreddd
- 10,975
- 9
- 33
- 34
1
vote
1 answer
MS Azure - python http.server - Connection refused
I have a very simple Ubuntu VM hosted on MS Azure. I have this simple python program running on it:
import http.server
from prometheus_client import start_http_server
from prometheus_client import Counter
REQUESTS =…

fenice85
- 45
- 1
- 4
1
vote
2 answers
Nested loop syntax in python server pages
I am just trying to write a small web page that can parse some text using a regular expression and return the resulting matches in a table. This is the first I've used python for web development, and I have to say, it looks messy.
My question is why…

scottm
- 27,829
- 22
- 107
- 159
1
vote
2 answers
Auto sign in with Google, Facebook and Twitter in Android App
Actually I have 2 questions. I added google, facebook and twitter sign in to my android app. I use firebase sign in for register and login. After that I will use my own python server. Now, I want to add auto sign in. Namely, after first login, it…

wowo
- 173
- 3
- 11
1
vote
0 answers
Not able to see Response Body Preview in the web Browser
import codecs
def do_GET_Index(self):
self.set_HTTP_headers(200)
HtmlFile3 = codecs.open('server/entry_template.html', 'r','utf-8')
html_response = HtmlFile3.read()
self.wfile.write(html_reponse)
Iam running these in a python…

Legolas
- 805
- 1
- 11
- 24
1
vote
2 answers
SSL exception on local https server in python
I am using windows 7 and python 2.7
I created local https server with redirect url to server as its IP address. I created cert file for https using openssl.
Everyting is fine but getting SSL Exception when it redirects to local https server.
Since,…

imp
- 1,967
- 2
- 28
- 40
0
votes
0 answers
Only the first page works after configuring Flask with uWSGI and nginx - what's causing the redirection 404s?
Flask uWSGI nginx redirections problems error 404
I have configured the server like this https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04
But there is only the first page who are…
0
votes
0 answers
Flutter package to stream audio
I am building a flutter app which I want to streams audio(people speaking into the app) to a python server. I know someone asked a very similar question but that was answered by using Agora. We can't do this as we need it to be to our own python…

ClarkeJ2000
- 47
- 6
0
votes
1 answer
Can't grant my chrome extension CORS permission even though I have added the headers and CORS is installed
I am trying to make a simple chrome extension AI email SPAM/HAM classifier.
It is a chrome extension that when clicked shows a popup in a quarter of the screen that looks like this
and when clicking the button it would send the message to a python…

Alex Besse
- 19
- 2
0
votes
1 answer
Why do i keep getting [Erno 111] connection refused while trying to connect my python client to server?
I'm able to start up the server script and get it running no problem, but every time i try to connect with my client script it keeps saying connection refused. I tried running the script on both Linux and windows. For the client and server I tried…

It's just Toro
- 3
- 2
0
votes
0 answers
video progress bar is not working when I use python server
I am creating a web page like Youtube, the upload works but when showing the page to see the downloaded video and wanting to go to a specific position using the progress bar of the video controls, it restarts from scratch again, unless it loads all…

Sam Amimundo
- 1
- 2