Skip to content

Commit ad576e9

Browse files
committed
1 parent d003fb3 commit ad576e9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

fourohme.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,25 @@ func main() {
487487
go fourohme.TalkHttpBaby(ch, &wg, *silentPtr)
488488
}
489489

490+
// Try some custom variants
491+
wg.Add(1)
492+
var headerList []fourohme.Header
493+
494+
var urlList []string
495+
urlList = append(urlList, fmt.Sprintf("%s/%s//", sUrl, sPath))
496+
urlList = append(urlList, fmt.Sprintf("%s/.%s/..", sUrl, sPath))
497+
urlList = append(urlList, fmt.Sprintf("%s/;%s", sUrl, sPath))
498+
urlList = append(urlList, fmt.Sprintf("%s/.;%s", sUrl, sPath))
499+
urlList = append(urlList, fmt.Sprintf("%s//;/%s", sUrl, sPath))
500+
urlList = append(urlList, fmt.Sprintf("%s%s", sUrl, strings.ToUpper(sPath)))
501+
502+
for _, url := range urlList {
503+
wg.Add(1)
504+
request := fourohme.Request{Verb: "GET", Url: url, Headers: headerList}
505+
ch <- request
506+
go fourohme.TalkHttpBaby(ch, &wg, *silentPtr)
507+
}
508+
490509
close(ch)
491510
wg.Wait()
492511
}

0 commit comments

Comments
 (0)