Looking through the XirSys API, I don't see a way to simply get my IP address as it visible from XirSys.
Is that possible to get via the exposed API?
The XirSys STUN servers do exactly that, but it's not something you can request from an HTTP request. If you're using a middleware server (for security), however, then you can do this in pretty much any language. See for example: How to get the client IP address in PHP?
Related
Fiddler doesn't show outgoing API requests.
Using IFEO debugger shows localhost requests that are not usefull for me, I need actual domains.
Someone told me that client ignores windows proxy and i need application proxy but client has protection against it so there's even more to it.
Has anyone tracked lol/riot's requests before and know how to do that?
We have a supplier that develops a linux-server for us exposing a REST API. We are developing a client application that uses this REST API. Multiple clients running this client applications work together and e.g. have a chat functionality. I would now like to write tests using the rest-API to verify if the server logic for this chat functionality is working: e.g. "Does client Jane receive the correct message if client Tarzan is sending a message".
I am thinking about something like this (pseudo-code):
client_tarzan = createclient()
client_jane = createclient()
#the actual login logic is hidden to make the example easier
client_tarzan.login_to_server
client_jane.login_to_server
client_tarzan->request('POST‘,hello_message_for_jane)
received_message = client_jane->request('GET‘,inbox_path)
expect(received_message).to be(expected_message)
The server needs the REST API calls from Tarzan and Jane to be coming from different IP addresses as it internally uses the IP addresses in its logic.
Is this possible with synfony?
How would I start to do something like that?
Do I need to do something special when interfacing the linux server (e.g. run it in a VM?) as I cannot imagine how simfony would be able to create actual TCP packages coming from different IP addresses in order to make the server believe that the two clients are actually separate. I guess this is the core of my question.
Symfony's test-client supports faking IP addresses and you can create multiple clients in a test.
The following example should give you an idea how to get started:
$client1 = static::createClient([], ['REMOTE_ADDR' => '11.11.11.11']);
$client2 = static::createClient([], ['REMOTE_ADDR' => '22.22.22.22']);
$client1->request('POST', '/say', ['message' => 'Hi']);
$client2->request('GET', '/chat');
For further guidance please consult the documentation chapter: Working with the Test Client
I came across a challenge that can't seem to find a way to handle. I have a software that runs a camera system. This software is only capable of sending a POST requests. It allows me to type in the host IP, user name, password and a body of a request. I wanted to send an http request to close/open an output on one of the cameras, but from the camera manufacturer API documentation the only way to close an output via http request is to send a request with PUT method. Is there a way to change a method of a request from the body of the request, or from the host IP field? Or maybe there is a standalone software that could act as a proxy to convert that request? Finally if there's no solution out of the box does anybody know if I could set up a lightweight server with which I could accept the POST request, analyze it and send it as a PUT request?
Really appreciate your input.
Thank you.
Well if you ask, there surely is burpsuite which can be used to manipulate your http request packet. Just add the port to proxy option and turn the interceptor on so before the request reaches to api you can manipulate the http packet.
Hope this is what you were looking for.
We have come across similar problem, need your help to resolve this.
Can you please either let us know your contact number so that we can reach out to you or if you can provide your script if possible so that we can refer to
Here is the problem we are stuck with:
I am trying to test a Rest service through HTTP sampler using Jmeter. Not sure how to capture token from the sampler generates a token and to use this token for authorization in the header manager of another HTTP.
Loadrunner is not displaying the web address when trying to enter in the truclient browser. Below is the problem as this web address automatically redirect to another web address which is the authentication server.
Can you please suggest another solution for the below issue?
Here is the exact scenario we are trying to achieve
we want to loadtest the portal however due to redirect and different authentication method being used we are unable to do it using truclient protocol in loadrunner. Also tried Multiple protocol selecting LDAP, SMTP, HTTP/HTML etc but no luck.**
Thank You,
Sonny
JMETER is going to architecturally be the HTTP protocol layer equivalent with LoadRunner, with the exception of the number of threads per browser emulation.
In contrast to the code request, I want to architecturally visualize the problem. You mention redirect, is this an HTTP 301/302 redirect or one which is handled with information passed back to the client, processed on the client and then redirected to another host? You mention dynamic authentication via header token, have you examined the web_add_header() and web_add_auto_header() in Laodrunner web virtual users for passing of extra header messages, including ones which have been correlated from previous requests, such as the token being passed back as you note?
This authentication mechanism is based upon? LDAP? Kerberos? Windows Integrated Authentication? Simple Authentication based upon username/password in header? Can you be architecturally more specific and when this comes into play, such as from the first request to gain access to the test environment through the firewall or from a nth request to gain access within a business process?
You mention RESTFul services. These can be transport independent, such as being passed over SMTP using a mailbox to broker the passing of data between client and server, or over HTTP similar to SOAP messages. Do you have architectural clarity on this? Could it be that you need to provide mailbox authentication across SMTP and POP3 to send and receive?
Is it possible to get the IP Address of a REST service's caller via an Aspect? If so, how can it be done?