[Libevent-users] evhttp questions, 1.2

Ben Rigas ben.rigas at interoptechnologies.com
Thu Nov 16 13:03:15 EST 2006


Hello all,

I am experimenting with the HTTP support in libevent 1.2, but I have  
some issues.

First thing I noticed was that the "http-internal.h" file was not  
being installed, and seems to be required to use the HTTP structures.  
I copied this to my include path and things work ok.

Another thing is that I can't figure out how to use the same  
evhttp_connection to do multiple requests. If I try to use the same  
evhttp_connection for a second request, it does not throw any errors  
(ie, my new evhttp_make_request does not fail) but the request is  
never actually sent out. If I make a new evhttp_connection each time,  
then this works.. but I don't see why the evhttp_connection could not  
be reused.

Is there some function call that I could be missing to clear the  
connection between requests? I looked through the headers, but didn't  
see anything that was obvious.

Thanks,

-Ben


-- 

Ben Rigas
Software Engineer, InterOP Technologies



More information about the Libevent-users mailing list