Skip to content
Sign upLog in
← Back to Community
How can I send and receive requests to my replit project?
Profile icon
hacker
has Hacker Plan
oskxzr

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.

Voters
Profile icon
oskxzr
Comments
hotnewtop
Profile icon
SamDev7

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

response = requests.get("https://example.com") response = requests.post("https://example.com", data=data)

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.

Profile icon
ch1ck3n

@Saml2020
you spelt response wrong btw

Profile icon
SamDev7

@ch1ck3n
Ah yes sorry about that...

Profile icon
BD007

5db9e137-f6d5-4d8b-b7d9-069511751d4a