#crit5505

1 messages · Page 1 of 1 (latest)

broken voidBOT
glad bear
#

hey]

fast rain
#

Hi, could you elaborate which part do you need help with?

glad bear
#

real quick

#

i saw this online if it helps
This question ranks highly on Google for some reason, which means I regularly click through here when I encounter this issue. For the sake of my sanity, and anyone else who arrives here, here's the answer:

Execute this in the command prompt:

Remove-item alias:curl
Explanation: There's a CmdLet called Invoke-WebRequest which has an alias of curl. So when you execute this command, rather than using curl, it tries to use Invoke-WebRequest. Removing this alias allows you to execute curl as you intended.

Windows Terminal seems to have Invoke-WebRequest set up by default, so I occasionally find myself needing to run the Remove-item.

#

@fast rain

#

problem is when i execute it in cmd it says this \

fast rain
#

So you are looking for how to curl in window?

#

You need to download it first

glad bear
#

thanks

glad bear
#

@fast rain

#

i couldnt get curl to work

#

could this be the issue?

fast rain
#

No that's different. You would want to install and get curl to work first

glad bear
#

ok thanks

#

@fast rain I installed curl successfully and i still get these errors

fast rain
#

which errors for now?

glad bear
#

red lines under my text

#

and curl -X POST localhost:4242/create-payment-intent

#

@fast rain

fast rain
#

It's probably because curl version in window is a bit different to Unix

#

Have you tried cygwin?

glad bear
#

i installed standard version

#

@fast rain good?

fast rain
#

Please don't mention everytime

glad bear
#

ok

fast rain
#

I meant cygwin as a different terminal in Window

#

When you install curl on cygwin, you could have a different version

glad bear
#

wdym

#

im confused

fast rain
#

Google for "Install cygwin for window"

glad bear
#

what should I do

#

i already did

fast rain
#

And have you installed it?

glad bear
#

yes

#

sorry, im mainly a frontend developer but I am learning how to do backend stuff with stripe custom flow payments

fast rain
#

Then running curl on cygwin?

#

does it have -X option?

glad bear
#

no

#

how do i run curl on cygwin

#

i added the cygwin curl same way i added the normal curl

#

through this

#

I have this open how should I run it?

#

also how would I fix this issue

#

omg haha

#

i was using back ticks not colins

#

hahahha

#

the payment form is not showing up on website after fixing the back ticks could it be because of curl?