# HTTP Server challenge using python

**URL:** <https://forum.codecrafters.io/t/http-server-challenge-using-python/3202>\
**Category:** Challenges\
**Tags:** challenge:http-server\
**Created:** [November 29, 2024, 4:47pm UTC](https://forum.codecrafters.io/t/http-server-challenge-using-python/3202 "2024-11-29T16:47:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![youssef-abbih](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/youssef-abbih/32/3213_2.png) [@youssef-abbih](https://forum.codecrafters.io/u/youssef-abbih)\
**Post date:** [November 29, 2024, 4:47pm UTC](https://forum.codecrafters.io/t/http-server-challenge-using-python/3202/1 "2024-11-29T16:47:30Z")

</div>

I’m stuck on Stage #ia4.

I’ don’t know how a http server works.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [November 30, 2024, 5:09am UTC](https://forum.codecrafters.io/t/http-server-challenge-using-python/3202/2 "2024-11-30T05:09:53Z")

</div>

Hi @youssef-abbih, your code only needs to send back a string like this `HTTP/1.1 200 OK\r\n\r\n` for stage **#ia4 Respond with 200**.

If you’re not sure how to do that, you might find this helpful:

> **[TCP Servers in Python](https://app.codecrafters.io/concepts/python-tcp-server)**
>
> Learn how to write TCP servers using Python's \`socket\` module

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [December 8, 2024, 3:30pm UTC](https://forum.codecrafters.io/t/http-server-challenge-using-python/3202/3 "2024-12-08T15:30:05Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [December 13, 2024, 3:30pm UTC](https://forum.codecrafters.io/t/http-server-challenge-using-python/3202/4 "2024-12-13T15:30:36Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
