GithubHelp home page GithubHelp logo

Comments (10)

 avatar commented on June 18, 2024 3

Could you please give an example of how to specify the proxy server in the input file? This is for the situation where there is a proxy between the client that tsung is running on and the server being tested.

The previous answer "The server configured will used as a proxy and absolute URL must be used in" isn't clear.

Thanks very much for your help!

from tsung.

nniclausse avatar nniclausse commented on June 18, 2024

yes, you should add: <option type="ts_http" name="http_use_server_as_proxy" value="true"></option>

The server configured will used as a proxy and absolute URL must be used in <sessions>

from tsung.

fabuloso avatar fabuloso commented on June 18, 2024

@nniclausse sorry can you show me how to achieve the result? should i configure the xml file?

what i want is to test an http server that is located outside of my network.

thanks

from tsung.

tisba avatar tisba commented on June 18, 2024

@nniclausse your response somehow looks being lost :)

@fabuloso I'm not sure what you exactly want to achieve. Do you want to test the proxy server? In this case you might want to take a look at https://tsung.readthedocs.org/en/latest/benchmark.html#benchmarking-a-proxy-server.

from tsung.

manjukori avatar manjukori commented on June 18, 2024

@nniclausse @mattharrington001
Could you please provide an example of how to set the https proxy server in the tsung config file?? I have the server under test behind the proxy and "https_proxy" env variable does not have impact on the tsung run.

from tsung.

tisba avatar tisba commented on June 18, 2024

I took the liberty to fix @nniclausse comment :) Also, please take a look at the documentation: https://tsung.readthedocs.org/en/latest/benchmark.html#benchmarking-a-proxy-server. If you set this option, and use absolute URLs for your <http url="…"> tsung will use the provided <servers> as HTTP proxies.

Is this what you are looking for, @mattharrington001, @manjukori, @fabuloso?

from tsung.

manjukori avatar manjukori commented on June 18, 2024

@tisba Thanks, yes using absolute URLs will work for me. However, I am seeing SSL certificate validation errors, is there a option in Tsung to ignore such SSL errors.
[Something like in python requests lib, response = requests.get(url, verify=False), verify=False will ignore SSL certificate error]

from tsung.

tisba avatar tisba commented on June 18, 2024

That's strange. Can you paste parts of your error log? IIRC by default tsung does not perform certificate validation…

from tsung.

manjukori avatar manjukori commented on June 18, 2024

I was getting 403 error from proxy with invalid certificate. I will try check the proxy first and make sure if that behaving correctly. Thanks for your reply.

from tsung.

tisba avatar tisba commented on June 18, 2024

You're welcome!

I'll close this issue now. Feel free to comment again if you still have issues with this feature.

from tsung.

Related Issues (20)

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.