Menu

Behind a proxy

Help
ofer
2011-10-06
2013-05-04
  • ofer

    ofer - 2011-10-06

    Hi,
    I am trying to run httest behind a proxy (proxy, 8080). How can I configure httest to use this proxy, or the system's proxy configurations. Currently I am failing to run the 'Wikipedia' example, probably because of this (error 670008).

    Thank you

     
  • christian liesch

    Hi,
    There is no direct proxy support.

    Its a key feature of httest not do anything automaticaly. No automatich follow redirects, no cookie handling and no proxy support. So you can do any nasty stuff with it :)

    In your case this isn't that helpfull I know. I take transparent proxy support on my TODO List.

    _REQ <proxy-host> <proxy-port>
    __GET http://<Your-Host>/<Your-URL> HTTP/1.1
    __Host: <Your-Host>
    __
    _WAIT

    So you connect to proxy and do the proxy protocol as specified.

    kind regards

     
  • christian liesch

    And here the wikipedia example through a local forward proxy listening on port 8080:

    CLIENT
    _REQ localhost 8080
    __GET http://www . wikipedia . org HTTP /1.1
    __Host : www . wikipedia . org
    __
    _EXPECT . "200 OK "
    _EXPECT . " Wikipedia "
    _WAIT
    END

     
  • ofer

    ofer - 2011-10-06

    Thanks, using a local proxy solves it.

     
  • christian liesch

    The same will sure work with any proxy :) just replace localhost with your proxy IP or name in the example above.

     

Log in to post a comment.