Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to save Python Requests data sent to server?
Post: RE: How to save Python Requests data sent to serve...

changing script to this: @app.route('/postit2', methods=['GET', 'POST']) def postit2(): d = request.files.to_dict() with open('/home/MadMartin/datapostfiles/EFL9.txt', 'w') as ...
RedLeonard General Coding Help 5 4,957 Jul-05-2020, 10:33 AM
    Thread: How to save Python Requests data sent to server?
Post: RE: How to save Python Requests data sent to serve...

ok, now I'm trying to send a text file to the same server but it's not saving the text. If I use this script to send to httbin.org it works fine: import requests import json #url = 'https://madmart...
RedLeonard General Coding Help 5 4,957 Jul-04-2020, 07:17 AM
    Thread: How to save Python Requests data sent to server?
Post: RE: How to save Python Requests data sent to serve...

great, thanks a lot - that's fixed it! I completely overlooked the json.dump method
RedLeonard General Coding Help 5 4,957 Jul-01-2020, 10:41 AM
    Thread: How to save Python Requests data sent to server?
Post: RE: How to save Python Requests data sent to serve...

anybody have any ideas on this? thanks
RedLeonard General Coding Help 5 4,957 Jul-01-2020, 06:29 AM
    Thread: How to save Python Requests data sent to server?
Post: How to save Python Requests data sent to server?

Hi, **smile** Firstly, I am using Python 3.4, Flask and Python Anywhere server. So, I am using Requests to send data to the server. This seems to work ok as a practice script but I'm having proble...
RedLeonard General Coding Help 5 4,957 Jun-30-2020, 11:08 AM
    Thread: Getting 'hello word' to work in Web server?
Post: RE: Getting 'hello word' to work in Web server?

the Flask part isn't the problem here - basically I have that working ok , both on local machine and another server however, I do in time, want to set it up on my main server, yet for now can't even ...
RedLeonard Web Scraping & Web Development 5 3,198 Dec-09-2018, 11:04 AM
    Thread: Getting 'hello word' to work in Web server?
Post: RE: Getting 'hello word' to work in Web server?

basically I am intending to use flask, however I can't even get basic 'hello world' running yet I'm trying to use CGI but looks to me that this is out of date for Windows Server 2016? so something n...
RedLeonard Web Scraping & Web Development 5 3,198 Dec-09-2018, 03:46 AM
    Thread: Getting 'hello word' to work in Web server?
Post: Getting 'hello word' to work in Web server?

I have a Windows 2016 Server and can't get 'hello world' with Python up and running The way I've added the code works fine on other servers, yet on this one the result is just 'page not found' ie. t...
RedLeonard Web Scraping & Web Development 5 3,198 Dec-09-2018, 02:37 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020