Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4756

Urlrewrite change/manipulate url

$
0
0

@dbm wrote:

Hello everybody,

I want to set a backend rewrite url in proxy with additional parameter.
Called Url for example:

https://api.company.de/sap/getproduct/MATNR/SERNR

Internale URL called for proxy :

http://internalserver.domain.local/sap/transaction/ProductSet(MATNR='1234',SERNR='1')?$format=json

So my backend settings in haproxy.cfg:

# SAP
backend sap
        mode http
        reqrep ^([^\ :]*)\ /sap/getproduct/(.*)/(.*) \1\ /sap/opu/odata/sap/ZEM_PDATA_SRV/ProductSet(MATNR=\'316511\',SERNR=\'1\')?$format=json\2
        server internalserver internalserver.domain.local:8080 check

Now i want to change with reqrep and the url the fields in matnr and sernr. With fixed values I get a response but not with dynamic parameter.

Thanks for help!

Kind regards

Daniel

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4756

Trending Articles