Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: JSON UTF-8

by Corion (Patriarch)
on May 09, 2024 at 13:43 UTC ( [id://11159357]=note: print w/replies, xml ) Need Help??


in reply to JSON encoding error

The error is likely not from the JSON but from the headers you resp. your webserver output.

Inspect these with (for example) curl:

curl -v https://your.server/webhook.cgi

Replies are listed 'Best First'.
Re^2: JSON UTF-8
by Bod (Parson) on May 09, 2024 at 14:44 UTC

    Thanks...I've tracked the error down - see Re^2: JSON UTF-8

    But I've learnt that I can use curl on Windows and that I can easily look at headers :)

Re^2: JSON UTF-8
by Bod (Parson) on May 09, 2024 at 14:21 UTC

    I don't really know what I am looking at but my untrained eye doesn't spot anything untoward in the reply from curl...

    C:\Users\User>curl -v https://test.ontheradar.uk/api/stripe/test.pl * Trying 194.164.26.100:443... * Connected to test.ontheradar.uk (194.164.26.100) port 443 * schannel: disabled automatic use of client certificate * ALPN: curl offers http/1.1 * ALPN: server accepted http/1.1 * using HTTP/1.1 > GET /api/stripe/test.pl HTTP/1.1 > Host: test.ontheradar.uk > User-Agent: curl/8.4.0 > Accept: */* > * schannel: remote party requests renegotiation * schannel: renegotiating SSL/TLS connection * schannel: SSL/TLS connection renegotiated * schannel: remote party requests renegotiation * schannel: renegotiating SSL/TLS connection * schannel: SSL/TLS connection renegotiated < HTTP/1.1 200 OK < Server: nginx < Date: Thu, 09 May 2024 14:18:17 GMT < Content-Type: application/json; charset=UTF-8 < Transfer-Encoding: chunked < Connection: keep-alive < X-Powered-By: PleskLin < {"testing":"some test"}* Connection #0 to host test.ontheradar.uk left + intact

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11159357]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2025-06-12 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.