# URL rejection due to port number issue. **Category:** [Open Forum](https://forum.rcpch.tech/c/general/4) **Created:** 2025-11-05 13:54 UTC **Views:** 8 **Replies:** 3 **URL:** https://forum.rcpch.tech/t/url-rejection-due-to-port-number-issue/620 --- ## Post #1 by @wmcdevitt Hello, I get the following error when trying to access digital growth charts. Can anyone help? C:\\Users\\will\_>curl --location --request POST ‘https://api.rcpch.ac.uk/growth/v1/uk-who/calculation’ curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535 --- ## Post #2 by @michael.barton Thanks @wmcdevitt. It looks like this is an issue with single quotes on the windows command line. If you'd like to use Powershell something like this should work: ```powershell $body = @{ "birth_date" = "2020-04-12" "observation_date" = "2028-06-12" "observation_value" = 115 "sex" = "female" "gestation_weeks" = 40 "gestation_days" = 0 "measurement_method" = "height" } | ConvertTo-Json Invoke-RestMethod -Uri 'https://api.rcpch.ac.uk/growth/v1/uk-who/calculation' -Method Post -Body $body -Headers @{ 'Subscription-Key' = 'YOUR_PRIMARY_API_KEY_GOES_HERE' 'Content-Type' = 'application/json' } ``` You can also use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) to install a Linux system on your Windows machine which will let you use the example as is. I've raised [Example curl command doesn't work on Windows · Issue #138 · rcpch/digital-growth-charts-documentation](https://github.com/rcpch/digital-growth-charts-documentation/issues/138) to update our documentation to cover this. Which system/programming language are you ultimately aiming to consume the API response from? --- ## Post #3 by @pacharanero [quote="michael.barton, post:2, topic:620"] If you’d like to use Powershell something like this should work: [/quote] If someone with a Windows machine can confirm that this Powershell example works on Windows then I will add it to the docs site. --- ## Post #4 by @wmcdevitt Hello, Thanks for helping with this. I can confirm it works in Powershell --- **Canonical:** https://forum.rcpch.tech/t/url-rejection-due-to-port-number-issue/620 **Original content:** https://forum.rcpch.tech/t/url-rejection-due-to-port-number-issue/620