LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-18-2013, 08:34 AM   #1
piphonom
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
compose a HTTP object from raw IP packets


Hello! I'm developing a C program that should build HTTP objects from raw IP packets stream. As I understand it's not a trivial task for userspace but it is interesting for me. Does somebody know about some application that do the same job? The same task for example do Wireshark. But Wireshark has very complicated to understand sources because it supports a lot of different protocols and is written to be cross platform.
And also I'm interesting some C library that will help me to parse HTTP objects. I found two diffrernt libraries with the name libhttp, one for C++, and one for C. And unfotunetly C library is still not complited.
I will be appreciated for any suggestions!
 
Old 06-18-2013, 02:30 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,897

Rep: Reputation: 164Reputation: 164
If raw IP packet will make code complicated, TCP socket can save IP and TCP header.

Following link can make you build HTTP server or client much easy.
http://www.jmarshall.com/easy/http/

Another library is good choice, libebb.
libebb is a lightweight HTTP server library for C. It lays the foundation for writing a web server by providing the socket juggling and request parsing. By implementing the HTTP/1.1 grammar provided in RFC2612, libebb understands most most valid HTTP/1.1 connections (persistent, pipelined, and chunked requests included) and rejects invalid or malicious requests. libebb supports SSL over HTTP.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Allthough squid has 1 object, it still asks object to http server markraem Linux - Server 0 10-08-2007 11:40 AM
Problem with raw IP packets fei Programming 7 01-30-2007 07:17 AM
Packets gets repeated in raw sockets??????? fpfernando Programming 5 03-08-2006 02:20 AM
raw packets bassdemon Programming 7 01-28-2005 12:23 AM
RAW packets not permitted? (mandrake 9.1) core Linux - Networking 2 08-16-2003 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration