Skip to main content

Search

Items tagged with: web


You and Me Learn All About HTTP with Safia Abdalla - DEV Community

«This talk covers the history, fundamentals, and applications of HTTP (HyperText Transfer Protocol).[..]»

#web #dev | #http ?

https://dev.to/captainsafia/you-and-me-learn-all-about-http-with-safia-abdalla-3nd0
#web #dev #http




Help wanted: Website testing inside Python code

Background


I'm trying to use Pyhton's webbrowser module for testing a website with various pages, and one of the pages is index.html

I can open this page using this code:

webbrowser.open(file:///[...]/public/index.html)

But if i instead use this code

webbrowser.open(file:///[...]/public/)

then i will get a list of the contents of that directory

Question


What do you suggest that i do if i want to test my website?

A few options that i can see:
* Changing a setting in the browser
* Setting up a local http server
* Asking Python's webbrowser to look for an index.html file (this would work the first time but not when navigating between pages)

I use Firefox and Chromium as browers and Python 3.8

#python #programming #web #question


Help wanted: Website testing inside Python code

Background


I'm trying to use Pyhton's webbrowser module for testing a website with various pages, and one of the pages is index.html

I can open this page using this code:

webbrowser.open(file:///[...]/public/index.html)

But if i instead use this code

webbrowser.open(file:///[...]/public/)

then i will get a list of the contents of that directory

Question


What do you suggest that i do if i want to test my website?

A few options that i can see:
* Changing a setting in the browser
* Setting up a local http server
* Asking Python's webbrowser to look for an index.html file (this would work the first time but not when navigating between pages)

I use Firefox and Chromium as browers and Python 3.8

#python #programming #web #question


La skin de reisub (Servicio de redes sociales abiertas y software libre desde Argentina) está disponible para quien quiera trabajar sobre ella, solo debe enviarme mensaje por friendica-diaspora-hubzilla o por correo.

El resultado del trabajo (solo #HTML5 ): https://reisub.nsupdate.info/reisub/

@Fabián Bonetti
#mywork #skin #web #Argentina

This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.