Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    testhttpserver 0.1.4

    Download button

    No screenshots available
    Downloads: 135  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Philip Cristiano | More programs
    BSD License / FREE
    July 29th, 2011, 03:21 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    testhttpserver description

    A HTTP server to use for testing

    testhttpserver is a simple HTTP server that will respond to a single HTTP request and record some of the data. It is still an early version and doesn't do everything you probably want.

    Installing

     pip install testhttpserver

    Using in your tests

    To create a test server import the server

     from testhttpserver import Server

    And then create a new instance including the port, response status and content.

     server = Server(8000, response_status=200, response_content='Content')

    After you make your request to http://localhost:8000/ . If you POST to the server it will have post_headers and post_content available.

    When you are done remember to join()!

     server.join()

    See tests/test_server.py for an example!


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    HTTP server | server testing | HTTP request | HTTP | server | testing

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM