GithubHelp home page GithubHelp logo

pyhttp's People

Contributors

aareon avatar jb3 avatar

Forkers

jb3 aareon

pyhttp's Issues

allow relative redirects

$ ./main.py -V https://httpbin.org/redirect/3
GET https: httpbin.org 443 /redirect/3
HTTP/1.1 302 FOUND
Connection: close
Server: gunicorn/19.9.0
Date: Fri, 27 Jul 2018 23:19:52 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 247
Location: /relative-redirect/2
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Via: 1.1 vegur
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>Redirecting...</title>
<h1>Redirecting...</h1>
<p>You should be redirected automatically to target URL: <a href="/relative-redirect/2">/relative-redirect/2</a>.  If not click the link
Redirecting [302 FOUND] https://httpbin.org/redirect/3 => /relative-redirect/2
Traceback (most recent call last):
  File "./main.py", line 154, in <module>
    main(args)
  File "./main.py", line 108, in main
    raise InvalidScheme(f"Scheme {scheme} is not supported")
errors.InvalidScheme: Scheme  is not supported

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.