Created
April 9, 2025 19:48
-
-
Save fraserharris/77bfd316d89517d225e1dc2ba4142139 to your computer and use it in GitHub Desktop.
Census HTTP Request POST
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request POST \ | |
--url https://app.getcensus.com/api/v1/sources/2253984/topics/885827/events \ | |
--header 'Authorization: Bearer <token>' \ | |
--header 'Content-Type: application/json' \ | |
--data '{"eventType":"strtesting","timestamp":"2025-04-10T12:01:00Z","data":{"test":"hello"}}' -v | |
Note: Unnecessary use of -X or --request, POST is already inferred. | |
* Trying 44.198.8.95:443... | |
* Connected to app.getcensus.com (44.198.8.95) port 443 | |
* ALPN: curl offers h2,http/1.1 | |
* (304) (OUT), TLS handshake, Client hello (1): | |
* CAfile: /etc/ssl/cert.pem | |
* CApath: none | |
* (304) (IN), TLS handshake, Server hello (2): | |
* (304) (IN), TLS handshake, Unknown (8): | |
* (304) (IN), TLS handshake, Certificate (11): | |
* (304) (IN), TLS handshake, CERT verify (15): | |
* (304) (IN), TLS handshake, Finished (20): | |
* (304) (OUT), TLS handshake, Finished (20): | |
* SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256 | |
* ALPN: server accepted h2 | |
* Server certificate: | |
* subject: CN=app.getcensus.com | |
* start date: Mar 5 00:00:00 2025 GMT | |
* expire date: Apr 4 23:59:59 2026 GMT | |
* subjectAltName: host "app.getcensus.com" matched cert's "app.getcensus.com" | |
* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M02 | |
* SSL certificate verify ok. | |
* using HTTP/2 | |
* [HTTP/2] [1] OPENED stream for https://app.getcensus.com/api/v1/sources/2253984/topics/885827/events | |
* [HTTP/2] [1] [:method: POST] | |
* [HTTP/2] [1] [:scheme: https] | |
* [HTTP/2] [1] [:authority: app.getcensus.com] | |
* [HTTP/2] [1] [:path: /api/v1/sources/2253984/topics/885827/events] | |
* [HTTP/2] [1] [user-agent: curl/8.4.0] | |
* [HTTP/2] [1] [accept: */*] | |
* [HTTP/2] [1] [authorization: Bearer secret-token:r1gEcYRZhPUn7meUfw12QmMx] | |
* [HTTP/2] [1] [content-type: application/json] | |
* [HTTP/2] [1] [content-length: 85] | |
> POST /api/v1/sources/2253984/topics/885827/events HTTP/2 | |
> Host: app.getcensus.com | |
> User-Agent: curl/8.4.0 | |
> Accept: */* | |
> Authorization: Bearer secret-token:r1gEcYRZhPUn7meUfw12QmMx | |
> Content-Type: application/json | |
> Content-Length: 85 | |
> | |
< HTTP/2 200 | |
< date: Wed, 09 Apr 2025 19:31:48 GMT | |
< content-type: text/html; charset=utf-8 | |
< content-length: 0 | |
< vary: Accept-Encoding, Origin | |
< cache-control: no-cache | |
< x-request-id: 8a756c4f-b8fb-437a-a501-67fa74e87286 | |
< x-runtime: 0.098367 | |
< strict-transport-security: max-age=631138519 | |
< x-frame-options: sameorigin | |
< x-content-type-options: nosniff | |
< x-xss-protection: 1; mode=block | |
< x-download-options: noopen | |
< x-permitted-cross-domain-policies: none | |
< referrer-policy: strict-origin-when-cross-origin | |
< content-security-policy: | |
< content-security-policy-report-only: font-src 'self' data: fonts.gstatic.com js.intercomcdn.com *.fontawesome.com fonts.intercomcdn.com; form-action 'self'; img-src 'self' data: *.getcensus.com getcensus.zendesk.com track.hubspot.com *.zdusercontent.com www.googletagmanager.com www.google.com www.google-analytics.com static.intercomassets.com *.intercomcdn.com px.ads.linkedin.com v2assets.zopim.io www.google.ca www.google.co.uk www.google.es www.google.com.ar www.google.com.mx www.google.com.ng www.google.fr; script-src 'self' 'unsafe-inline' *.amplitude.com www.googletagmanager.com connect.facebook.net *.licdn.com *.hs-analytics.net *.fullstory.com fullstory.com *.getcensus.com cdn.segment.com cdn.headwayapp.co beacon-v2.helpscout.net js.intercomcdn.com widget.intercom.io apis.google.com cdn.lr-ingest.io *.fontawesome.com static.zdassets.com www.google-analytics.com googleads.g.doubleclick.net widget-mediator.zopim.com js.usemessages.com js-na1.hs-scripts.com js.hsleadflows.net js.hs-banner.com js.hsadspixel.net cdn.jsdelivr.net cdnjs.cloudflare.com d3js.org code.jquery.com fast.chameleon.io; style-src 'self' 'unsafe-inline' fonts.googleapis.com cdn.jsdelivr.net cdnjs.cloudflare.com; report-uri /api/telemetry/csp_report | |
< | |
* Connection #0 to host app.getcensus.com left intact |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment