Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Service type - multiline Expected Response (Regex) ? #271

Open
stfast opened this issue Feb 11, 2024 · 0 comments
Open

HTTP Service type - multiline Expected Response (Regex) ? #271

stfast opened this issue Feb 11, 2024 · 0 comments

Comments

@stfast
Copy link

stfast commented Feb 11, 2024

Hi,

I'am trying with multiline (one line works well) Expected Responses for HTTP Service type.

Service Endpoint (URL):

https://mta-sts.google.com/.well-known/mta-sts.txt

where response is:

version: STSv1
mode: enforce
mx: smtp.google.com
mx: aspmx.l.google.com
mx: *.aspmx.l.google.com
max_age: 86400

but none of the valid regex-es do work:

Expected Response (Regex):

^version: STSv1\nmode: enforce\nmx: smtp.google.com\nmx: aspmx.l.google.com\nmx: *.aspmx.l.google.com\nmax_age: 86400$
or

"^version: STSv1\nmode: enforce\nmx: smtp.google.com\nmx: aspmx.l.google.com\nmx: *.aspmx.l.google.com\nmax_age: 86400$"m
...

Always an error:

WARN[13224] Service MTA-STS: google.com.mta-sts Failing: HTTP Response Body did not match '{{^version: STSv1\nmode: enforce\nmx: smtp.google.com\nmx: aspmx.l.google.com\nmx: *.aspmx.l.google.com\nmax_age: 86400$ true}}' | Lookup in: 1369 μs type=service

Could you provide a working example for multiline Expected Response for HTTP Service type

Regards

Screenshot 2024-02-11 at 19 01 12

@stfast stfast changed the title HTTP Service type ? multiline Expected Response (Regex) HTTP Service type ??? multiline Expected Response (Regex) Feb 11, 2024
@stfast stfast changed the title HTTP Service type ??? multiline Expected Response (Regex) HTTP Service type - multiline Expected Response (Regex) ? Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant