Ask coding questions

← Back to all posts
How can I send and receive requests to my replit project?
h
oskxzr (0)

Hello!

I was just wondering if there is a way to send requests to my replit project?

If so, how can I do that? And how can I listen for events from my code in replit?

e.g:
Script: (somewhere else on the internet)
HTTP.Post("replit.com/jdncsfgijkfnsdg", JSONEncodedData)

Replit:
Listens for the event and executes code

My main language is Python if there is anyone that has a solution for this in Python.

Comments
hotnewtop
Saml2020 (86)

With using Python to send data you can use the requests libary

Check out the requests libary here: https://docs.python-requests.org/en/master/


To listen for data you'll have to make a webserver, either with QuickAPI, Flask or others.

ch1ck3n (2882)

@Saml2020 you spelt response wrong btw

Saml2020 (86)

@ch1ck3n Ah yes sorry about that...