18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

How to get parameters from request/response

dominiksondominikson Members
edited April 2010 in Sahi - Open Source
Hello

I would like to aquire the raw HTTP request/response from an action performed by a script (i.e. _click()). I have to use it to send a request outside of the script (to operate a custom file upload dialog). Is that possible ?

The solution with logging the traffic is not what i'm loking for.

Thank you in advance

Comments

  • narayannarayan Administrators
    Hi dominikson,

    The information should be available with Sahi's proxy. But not sure how you will programmatically fetch it. Would it be something like

    _getLastRequestHeaders()
    _getLastResponseHeaders()

    In an AJAX application it may be difficult to pinpoint which request is the required one. Let us know your thoughts on how you wish to access the info in your script, and we will see if we can implement it for you.

    Regards,
    Narayan
Sign In or Register to comment.