Comments (10)
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.
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.
@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.
@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.
@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.
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.
@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.
That's strange. Can you paste parts of your error log? IIRC by default tsung does not perform certificate validation…
from tsung.
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.
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)
- Mean value is empty and count is 0 in the generated report
- The load is not generated from mulitple client instances as expected in distributed environment HOT 1
- Cannot do "contents_from_file" and '<request subst="true">' at the same time HOT 1
- datestr_test failed with erlang 21 HOT 1
- Error using tsung view after running load test
- Tsung 1.7.0 crashes on start HOT 3
- Getting config error while start a demo mqtt.xml.in script
- Are there any methods for getting only 400s or 500s error in tsung protocol dump file?
- Can I test TCP in tsung but using SSL? HOT 1
- Unable to view graphs on webui HOT 1
- Massive CPU usage after a certain point
- Tsung doen't respond with PONG
- Monitoring with snmp does not work
- Will start 0 users? Do I config error? HOT 1
- How can I test TCP and check recv package?
- How can i send all XMPP messages to a specific user? HOT 1
- Erlang OTP 26 ssl defaults HOT 1
- ssl hand shake fail
- tsung-recorder creates unusable data
- Missing opening curly bracket near @formats
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tsung.