Skip to content

lucky12651/Proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Flask Proxy Server

A simple Flask web application that acts as a proxy server, allowing you to retrieve and display content from other websites.

Features

  • Proxies both GET and POST requests.
  • Adds a base URL to content for static assets.

Getting Started

Prerequisites

  • Python installed
  • Flask installed (pip install Flask)
  • Requests installed (pip install requests)

Running the Application

  1. Clone this repository:

    git clone https://github.com/yourusername/flask-proxy-server.git
    cd flask-proxy-server
  2. Run the Flask application:

    python app.py

    The application will be accessible at http://127.0.0.1:5000.

  3. Open your browser and navigate to http://127.0.0.1:5000/proxy?url=http://example.com to test the proxy functionality.

Usage

  • Send a GET request to /proxy with the url parameter to retrieve content from the specified URL. Example: http://127.0.0.1:5000/proxy?url=http://example.com

  • Send a POST request to /proxy with the url parameter in the form data to retrieve content from the specified URL. Example using curl:

    curl -X POST -d "url=http://example.com" http://127.0.0.1:5000/proxy

Configuration

  • The application is set to run in debug mode. Update the debug parameter in app.run() for production deployment.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Feel free to customize the README further based on additional features, instructions, or configuration details you might want to provide. Additionally, make sure to include a license file (such as the MIT License) in your project if you haven't already.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages