Hi Jared Long, thank you so much for this post. I'm trying to use this process to build a Contact Us form on my NextJs website. I've walked through the tutorial but I'm unable to go beyond running the cURL command;
If that doesn't work, you also don't have to use cUrl and could try hitting the route with Postman if you have it.
Or if you use VSCode, you could install the ThunderClient Extension for testing API routes directly inside of VSCode. marketplace.visualstudio.com/items...
Hi Jared Long, thank you so much for this post. I'm trying to use this process to build a Contact Us form on my NextJs website. I've walked through the tutorial but I'm unable to go beyond running the cURL command;
curl -d -url localhost:3001/send
I keep running into an error:
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'url'.
At line:1 char:9
What do I need to do to go past this level?
Hmm I think you could try adding the
http://
to the beginning of the url:curl -d -url http://localhost:3001/send
If that doesn't work, you also don't have to use cUrl and could try hitting the route with Postman if you have it.
Or if you use VSCode, you could install the ThunderClient Extension for testing API routes directly inside of VSCode. marketplace.visualstudio.com/items...
Okay. I will try this instead and see how it turns out. Thanks!