Friday, May 3, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 395  / 1 Year ago, tue, january 10, 2023, 8:19:39

I'm posting this on AskUbuntu because "easiest" in my case includes giving preference to solutions depending only on software available in the default Ubuntu repositories. (to be more accurate, 12.04)



I am currently developing an application that accesses web APIs and would like to test whether proxy support is working. Ideally, I would like to run a local server and simply tell my application to access the proxy in localhost.



The catch is that my application supports SOCKS4, SOCKS5, and HTTP proxies, and I would like to test all possible error cases. This means:




  • sending a SOCKS5/HTTP request to a SOCKS4 server must not work

  • sending a SOCKS4/HTTP request to a SOCKS5 server must not work

  • sending a SOCKS5/SOCKS5 request to a HTTP server must not work



(all cases both with and without authentication)



So I can't use ssh -D for SOCKS, for example, because it automagically accepts both SOCKS4 and SOCCKS5 connections.


More From » application-development

 Answers
1

There is no easy way to exhaustively test proxy support.



To exhaustively test, you would need to configure proxy servers in the various combinations of servers and authentication settings, which are used in the real world, and test against all of them individually.



Note that in many scenarios, there may be Linux workstations in an office, though the proxy and some other services (such as Exchange, Intranet site, etc…) may still run on Windows under IIS.



It can be costly, and tiring, to test against all of these servers. The easiest thing to test against, would be squid, running on Ubuntu.


[#36299] Thursday, January 12, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cisccla

Total Points: 66
Total Questions: 134
Total Answers: 115

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
;