# Dynamic C for grab website

**URL:** <https://forums.digi.com/t/dynamic-c-for-grab-website/10747>\
**Category:** Rabbit\
**Created:** [February 24, 2007, 7:01pm UTC](https://forums.digi.com/t/dynamic-c-for-grab-website/10747 "2007-02-24T19:01:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoas](https://avatars.discourse-cdn.com/v4/letter/y/8e7dd6/32.png) [@yoas](https://forums.digi.com/u/yoas)\
**Post date:** [February 24, 2007, 7:01pm UTC](https://forums.digi.com/t/dynamic-c-for-grab-website/10747/1 "2007-02-24T19:01:40Z")

</div>

How to make a TCP connection to port 80, send the HTTP request with  
sock\_write, read the response with sock\_read and then parse it?  
i’m using dynamic c 7.3. Thank you

---

<div class="post-metadata">

**Author:** ![IWriteCode](https://avatars.discourse-cdn.com/v4/letter/i/4491bb/32.png) [@IWriteCode](https://forums.digi.com/u/IWriteCode)\
**Post date:** [February 28, 2007, 4:36pm UTC](https://forums.digi.com/t/dynamic-c-for-grab-website/10747/2 "2007-02-28T16:36:28Z")

</div>

Isn’t there a sample available which shows just how to do it?

The samples in 9.XX use a socket to write the request to port 80, and read the port to receive the requested data.

I’m not sure on the legal issues of posting rabbit sample code here, but it shouldn’t be to hard to do it.

---

<div class="post-metadata">

**Author:** ![tgarcia](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@tgarcia](https://forums.digi.com/u/tgarcia)\
**Post date:** [March 1, 2007, 9:14pm UTC](https://forums.digi.com/t/dynamic-c-for-grab-website/10747/3 "2007-03-01T21:14:33Z")

</div>

The sample is called active.c and its located in the dcrabbit\_x.xx\samples cpip directory.

---

<div class="post-metadata">

**Author:** ![yoas](https://avatars.discourse-cdn.com/v4/letter/y/8e7dd6/32.png) [@yoas](https://forums.digi.com/u/yoas)\
**Post date:** [March 5, 2007, 6:32pm UTC](https://forums.digi.com/t/dynamic-c-for-grab-website/10747/4 "2007-03-05T18:32:55Z")

</div>

thank you for your help. yeah, i’ve been trying active.c, but i confuse when parse the content (grab from website). anybody can help me? or link that contain the problem solving? thank you

---

<div class="post-metadata">

**Author:** ![tgarcia](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@tgarcia](https://forums.digi.com/u/tgarcia)\
**Post date:** [March 13, 2007, 8:43pm UTC](https://forums.digi.com/t/dynamic-c-for-grab-website/10747/5 "2007-03-13T20:43:31Z")

</div>

I have a sample that does a get request to a web server for an image. Maybe it will shed some lite on the type of data the HTTP server returns when a get request is received. It also parses the data and stores the image in extended memory.
