Mod_security error in HTTP GET call

(Baninaveen) #1

Why I am getting Mod_security error when I am trying HTTP GET call to 3rd party server. I already test it in POSTMAN there I ma getting 200 response

but when I am trying in HTTP call then I am getting an error

Logs

(John Jackson) #2

I think you may need an Accept header. Can you inspect what Postman sends, and copy out whatever is sent in the accept header and add as a header in Flow XO?

Certainly the issue can only be missing headers or something related to IP address. Almost certainly the former.

(Baninaveen) #3

This is what I get from POSTMAN

(John Jackson) #4

I would try sticking all them headers in Flow XO (that should fix it), and then taking them out one by one to see which the API needs.

(Baninaveen) #5

I have done all the possible option But still I am getting an same error 406. Can U plz try in ur console. this is the url https://tools.vcommission.com/api/coupons.php?apikey=7c51060975bcc784496b0e8a3aa41fe859baaae9af2f1a89ba11b3bb3161fa6d

(Baninaveen) #6

I also use runscope . where I am getting 200 response

(Sarah Palombo) #7

Hi Bani,

Now you have a working request sent through runscope, you can compare the request you make in Flow XO.
If you copy both side by side to see what is different about the request in Flow XO??.

If you’re not sure we can have a quick look see if we can spot something. :slight_smile: You’d need to email both the FULL request from runscope (and the response) and the request in Flow XO (and the response) mail those to support@flowxo.com we’ll have a nosy :+1:

Sarah