I feel like I’m taking crazy pills. The documentation is somewhat scant for adding a Page Rule. I’ve reasearched quite a bit, but am getting a JSON error. Here is the code I’m posting:
This might have only happened when you posted to the forum but all your quotation marks are coming across as fancy Unicode quotes. In the code you’re actually trying to use, are they normal quotes or fancy? If I copy your JSON and search/replace with normal quotes then it validates on https://jsonlint.com/ at least
Yeah, I think it’s just the copying a pasting that made them fancy. They are definitely normal quotes. I’m able to get it to verify aa well. I’m wondering if I have the names correct (such as: forwarding_url, url, status_code, status, etc). I can’t find explicit documention that tells me exactly what to use.
what if you wrap the data in single quotes like --data '{...}'
or put the data in a file named temp.txt and do like --data @temp.txt
also run curl with --verbose so you can see exactly what you’re sending to the server and if it matches what you intended
except I think --verbose doesn’t show POST data but it looks like --trace-ascii log.txt would log absolutely everything (except binary data which there should be any)
Originally I had been trying to execute this through a Filemaker database. That is still failing. However if I do it through a command line prompt it’s now working. Just a little extra coding to do it that way and all is good now. Thanks for your tips and ideas to get me there!