CloudWeb 1 : script Python
... / CloudWeb 1 : script Python
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Question

CloudWeb 1 : script Python

by
JonathanS4
Created on 2019-08-28 10:03:02 (edited on 2024-09-04 11:23:32) in Hébergement Cloud Web

Bonjour,
Depuis 2 jours j'essaye d'executer un script python pour traiter une requette HTTP/POST.
A chaque fois, le serveur Web (could web 1) me retourne le contenu de la page et n'execute pas le code python. (voir resultat de curl ci-dessous).

Comment faire pour que python soit le moteur d'execution des pages d'un sous domaine ?
Merci.

>
\* Trying 188.165.XX.XX...
\* Connected to boond.mondomain.org (188.165.XX.XX) port 80 (#0)
\> POST /get-candidate.py HTTP/1.1
\> Host: boond.alteam.org
\> User-Agent: curl/7.43.0
\> Accept: */*
\> Content-Length: 101
\> Content-Type: application/x-www-form-urlencoded
\>
\* upload completely sent off: 101 out of 101 bytes
\< HTTP/1.1 200 OK
\< Date: Wed, 28 Aug 2019 09:50:14 GMT
\< Content-Type: application/octet-stream
\< Content-Length: 613
\< Set-Cookie: SERVERID33516=2414995; path=/; max-age=900
\< Server: nginx
\< Last-Modified: Wed, 28 Aug 2019 09:35:30 GMT
\< ETag: "265-5912a1c245930"
\< Accept-Ranges: bytes
\< X-IPLB-Instance: 17255
\<
\#!/usr/bin/python
\# -*- coding: UTF-8 -*-
\
'''
Created on 27 aout 2019
suite du code python


Replies are currently disabled for this question.