Send file using httperf - bash

I would like to monitor the performance of my server by sending a POST request with a file to upload to the server. Can you please tell me what is the option I should add?
Thanks!

Related

How to send a download request to a server without downloading the file?

I want to send a request to a server to download a file. However, when the file is sent by the server, I don't want to actually receive the file. I'm trying to see if it's possible for me to overload a server's bandwidth without having to actually download files.
I'm guessing this should be possible using some sort of a UDP protocol where no acknowledgements are required.
If the download is available via HTTP GET, you can try sending an HTTP HEAD request with the same headers to try to receive a response without the server actually sending the file.

JMeter : 500 Internal server error (calling API)

Hi Guys does anyone know about 500 internal server error when calling API?
I have an application where one of the functionality gets the data from API
so, i am doing jmeter perfomance tessting on the functionality
1) I recorded scripts using the jmeter proxy (Https recorder)
2) i added the listner
3) ran the script with jus tone thread
I saw 500 Internal server error in Response (please click the below link to see the error screenshot
error screenshot
Is something related to the api server calling using proxy or its problem with my script ?
Please tell any solutions how to do the performance testing on this scenario ?
Your question doesn't have enough information to figure out the cause of the failure so I can only give a piece of general advice:
Capture the request send to the endpoint by the real browser, you can use browser developer tools or external sniffer tool like Wireshark or Fiddler
Do the same for JMeter, either inspect request using View Results Tree listener or the aforementioned sniffer tools
Given requests are the same (apart from dynamic values which need to be correlated or parameterized) you should be getting the same response

500 Internal Server Error In Load Testing By Jmeter for SAP application

I am writing load test script for an SAP-based application in jmeter. I am getting 500 internal Server.
I saw that the request looks same which I have on the browser network tab and the one I provided in JMeter. The only difference is in the request header, that I am not providing any SAP-passport in my request. I am not to see the SAP-Passport in the response of any previous request's response so that I can extract that and use in future requests.
Please tell me if I am assuming correctly that the SAP-Passport is the issue, if yes then how can I get that and use in the request. Also if there is a way to get any static SAP-Passport.
Its a blocker for me and its on priority, please help.
As far as I can see from Single Sign-On with SAP Passports article it is a matter of adding a client certificate to JMeter.
Obtain SAP Passport root certificate somehow (i.e. export it from your browser)
Add it to JMeter. This can be done in 2 ways:
Using SSL Manager
Using JMeter system.properties file
Check out How to Set Your JMeter Load Test to Use Client Side Certificates guide for comprehensive instructions on both approaches.

Client-Server implementation for uploading a file using Socket

I want to implement a Client-Server program in which the client has to send a file to the server. In this case, what is the efficient way to send the file to server?
I am thinking in the following method,
After the connection establishment, First, I have to send the file name (which i want to upload) to server from client. Then I have to send the file content to server. The server will wait for the file content after received the file name from client.
So, for uploading a file, I need 2 write method in client & 2 read method in server.
Is this ok? Is there any other efficient way for doing this?
I think that your idea is correct. Maybe you should consider not to send files name (only the extension line .jpg) and let server generate one. This will prevent overwriting some already existing files.

Real-time HTTP stream writing console

Is there a program available that will allow me to interactively write HTTP stream data and send it to a server? Ideally I'm looking for a console app that will allow me to type or paste HTTP headers and body, send it to my server, and get the response headers and body back.
Does such a program already exist?
I'm running W7 64-bit with .NET 4.0.
if you change your mind and want a GUI app
http://code.google.com/p/rest-client/
or you can also use fiddler
Edit:
http://code.google.com/p/rest-client/ also supports commandline
Maybe telnet is an option for you? If it's not already installed on your machine, take a look at this guide from MS.
To connect to your server use it like this:
telnet www.myserver.de 80
After the connection is established, you can paste your HTTP GET reqests or what ever you like.
tinyget is a useful MSFT tool that will make simple get requests. You can store these requests in text files and stream them in.

Resources