MCPcopy Index your code
hub / github.com/code-scan/Goal / httpReq

Method httpReq

Gsensor/SecurityTrailsSensor.go:196–207  ·  view source on GitHub ↗
(uri string)

Source from the content-addressed store, hash-verified

194 }
195}
196func (s *SecurityTrails) httpReq(uri string) ([]byte, error) {
197 s.hostIp = "151.139.240.16"
198 uri = strings.ReplaceAll(uri, "securitytrails.com", s.hostIp)
199 s.http.New("POST", uri)
200 log.Println(uri)
201 s.http.IgnoreSSL()
202 s.http.HttpRequest.Host = "securitytrails.com"
203 s.http.SetCookie(s.Cookie)
204 s.http.Execute()
205 defer s.http.Close()
206 return s.http.Byte()
207}

Callers 4

GetBuildIdMethod · 0.95
GetSubDomainMethod · 0.95
GetHistoryMethod · 0.95
GetIpMethod · 0.95

Calls 6

NewMethod · 0.80
IgnoreSSLMethod · 0.80
SetCookieMethod · 0.80
ExecuteMethod · 0.80
ByteMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected