Skip to content

glenlancer/pyxel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyxel

A python implementation of Axel

Basic Description

This implementation aims to be run on Linux only.

How it works

axel_new -> axel_open -> axel_start -> axel_do -> axel_close

<<<<<<< HEAD

Redirections in HTTP

URL redirections, also known as URL forwarding, is a technique to give more than one URL address to a page, a form, or a whole Web site/application. HTTP has a special kind of response, called a HTTP redirect, for this opersion.

Redirects accomplish numerous goals:

  • Temporary redirects during site maintenance or downtime.
  • Permanent redirects to perserve existing links/bookmarks after changing the site's URLs, progress pages when uploading a file, etc.

Principle In Http, redirection is triggered by a server sending a special redirect response to a request. Redirect responses have status codes that start with 3, and a Location header holding the URL to redirect to.

There are several types of redirects, sorted into three categories:

  1. Permanent redirections.
  2. Temporary redirections.
  3. Special redirections.

In Nginx, you create a specific server block for the content you want to redirect:

server {
    listen 80;
    server_name example.com;
    return 301 $scheme://www.example.com$request_uri;
}

To apply a redirect to a directory or only certain pages, use the rewrite directive:

rewrite ^/images/(.*)$ https://images.example.com/$1 redirect;
rewrite ^/images/(.*)$ https://images.example.com/$1 permanent;

=======

RoadMap to finish the basic of this program

  1. http.py, tcp.py, connection.py
  2. process.py
  3. tasker.py
  4. ftp.py
  5. config.py

Protocols

237ce676f144483694988e44900165ce84c2d445

About

A python implementation of Axel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages