Skip to content

Add --debug / -D for request logging#24

Open
relaxnow wants to merge 1 commit intotjarrettveracode:masterfrom
relaxnow:feature/debug-flag
Open

Add --debug / -D for request logging#24
relaxnow wants to merge 1 commit intotjarrettveracode:masterfrom
relaxnow:feature/debug-flag

Conversation

@relaxnow
Copy link

Example output:

send: b'GET /api/authn/v2/api_credentials HTTP/1.1\r\nHost: api.veracode.com\r\nAccept-Encoding: identity\r\nUser-Agent: api.py\r\nAuthorization: VERACODE-HMAC-SHA-256 <SNIP>\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Tue, 16 Jan 2024 11:02:11 GMT
header: Content-Type: application/json
header: Transfer-Encoding: chunked
header: Connection: keep-alive
header: Cache-Control: no-cache, no-store, max-age=0, must-revalidate
header: Expires: 0
header: Pragma: no-cache
header: Strict-Transport-Security: max-age=31536000 ; includeSubDomains
header: X-Content-Type-Options: nosniff
header: X-CONVERSATION-ID: 36bb5ac8-4a47-4013-8f6e-1153640a0ae6
header: X-Frame-Options: DENY
header: X-XSS-Protection: 1; mode=block
header: CF-Cache-Status: DYNAMIC
header: Set-Cookie: <SNIP>; path=/; domain=.veracode.com; HttpOnly; Secure; SameSite=None
header: Server: cloudflare
header: CF-RAY: 8465dd6139b4670b-AMS
send: b'GET /appsec/v1/applications/62c918f4-c95c-4d35-8b0b-7a1bc877e75a HTTP/1.1\r\nHost: api.veracode.com\r\nAccept-Encoding: identity\r\nUser-Agent: api.py\r\nAuthorization: VERACODE-HMAC-SHA-256 <SNIP>\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Tue, 16 Jan 2024 11:02:11 GMT
header: Content-Type: application/json
header: Transfer-Encoding: chunked
header: Connection: keep-alive
header: Cache-Control: no-cache, no-store, max-age=0, must-revalidate
header: Expires: 0
header: Pragma: no-cache
header: Strict-Transport-Security: max-age=31536000 ; includeSubDomains
header: X-Content-Type-Options: nosniff
header: X-CONVERSATION-ID: bf055a31-0626-4f7b-b49f-cda0a8b5c9a0
header: X-Frame-Options: DENY
header: X-XSS-Protection: 1; mode=block
header: CF-Cache-Status: DYNAMIC
header: Set-Cookie: _cfuvid=<SNIP>; path=/; domain=.veracode.com; HttpOnly; Secure; SameSite=None
header: Server: cloudflare
header: CF-RAY: 8465dd63299e0e2f-AMS
Getting static findings for application bborigin (guid: 62c918f4-c95c-4d35-8b0b-7a1bc877e75a)
send: b'GET /appsec/v2/applications/62c918f4-c95c-4d35-8b0b-7a1bc877e75a/findings?scan_type=STATIC&include_annot=TRUE&page=0 HTTP/1.1\r\nHost: api.veracode.com\r\nAccept-Encoding: identity\r\nUser-Agent: api.py\r\nAuthorization: <SNIP>\r\n\r\n'

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

Successfully merging this pull request may close these issues.

1 participant