Skip to content

How to use stop-at-first-match with flow? #5410

Answered by ehsandeep
iambouali asked this question in Q&A
Discussion options

You must be logged in to vote

@iambouali we confirmed that stop-at-first-match doesn't work with flow and it's expected, instead you can use another trick to do the same using flow, refer to below template that works in same way without using stop-at-first-match.

id: test

info:
  name: test
  author: iambouali
  severity: high

flow: |
  for (let i = 0; i < 10; i++) {
    if (http(1)){
      break;
    }
  }

http: 
  - raw:
     - |
       GET /?cb=test HTTP/1.1
       Host: {{Hostname}}

    matchers:
      - type: status
        status:
          - 200

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iambouali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
2 participants
Converted from issue

This discussion was converted from issue #5400 on July 15, 2024 13:36.