Skip to content

Instantly share code, notes, and snippets.

@hirowatari
Created November 21, 2023 16:30
Show Gist options
  • Save hirowatari/ced389dc76b03e3fb99ab76f3c1d372d to your computer and use it in GitHub Desktop.
Save hirowatari/ced389dc76b03e3fb99ab76f3c1d372d to your computer and use it in GitHub Desktop.
curl -v -H "Authorization: Bearer REMOVED" 'https://api-proxy.pipedrive.com/v1/permissionSets/b9fd89e0-fb6d-11eb-9236-7d6a28019310'
* Trying 104.18.188.228:443...
* Connected to api-proxy.pipedrive.com (104.18.188.228) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: none
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted h2
* Server certificate:
* subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=pipedrive.com
* start date: Jul 11 00:00:00 2023 GMT
* expire date: Jul 9 23:59:59 2024 GMT
* subjectAltName: host "api-proxy.pipedrive.com" matched cert's "*.pipedrive.com"
* issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
* SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://api-proxy.pipedrive.com/v1/permissionSets/b9fd89e0-fb6d-11eb-9236-7d6a28019310
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: api-proxy.pipedrive.com]
* [HTTP/2] [1] [:path: /v1/permissionSets/b9fd89e0-fb6d-11eb-9236-7d6a28019310]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
* [HTTP/2] [1] [authorization: Bearer REMOVED]
> GET /v1/permissionSets/b9fd89e0-fb6d-11eb-9236-7d6a28019310 HTTP/2
> Host: api-proxy.pipedrive.com
> User-Agent: curl/8.4.0
> Accept: */*
> Authorization: Bearer REMOVED
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 403
< date: Sat, 18 Nov 2023 14:59:19 GMT
< content-type: application/json
< cf-ray: 8281139e98257107-YVR
< cf-cache-status: DYNAMIC
< cache-control: no-cache
< strict-transport-security: max-age=31536000; includeSubDomains
< access-control-expose-headers: X-RateLimit-Remaining, X-RateLimit-Limit, X-RateLimit-Reset
< badi: Routing: pdx-1=>pdx-1; Version: 29f3; Host: 689597d67f-bjdqh;
< x-content-type-options: nosniff
< x-correlation-id: 12db3bc9-77bc-43c4-a78a-317cd157ab1f
< x-envoy-upstream-service-time: 14
< x-xss-protection: 1; mode=block
< set-cookie: __cf_bm=4givQ995QTVUoi18RlT2_nUNE8wEbt2ix4zoneIERNY-1700319559-0-AVUhqHvtfGFEGuCn9jEvSz+TC4PON6Bfbz5o/d1aAhlvSgkK/OtN8vzRK1vkIgfeeuYzR+KDj70jYkWlvh3r6Ag=; path=/; expires=Sat, 18-Nov-23 15:29:19 GMT; domain=.pipedrive.com; HttpOnly; Secure; SameSite=None
< server: cloudflare
< alt-svc: h3=":443"; ma=86400
<
* Connection #0 to host api-proxy.pipedrive.com left intact
{"success":false,"error":"Scope and URL mismatch","errorCode":403,"error_info":"Please check developers.pipedrive.com"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment