[NTLUG:Discuss] OT - libwww question

MadHat madhat at unspecific.com
Thu Nov 3 09:24:45 CST 2005


On Nov 2, 2005, at 3:15 PM, Fred James wrote:
> MadHat wrote:
>> On Nov 2, 2005, at 2:00 PM, Fred James wrote:
>>> All
>>> The problem is this
>>> (1) pass an XML text message from server A to server B
>>> (2) receive an XML text message on server A from server B, in   
>>> response to the original message (item 1)
>>>
>>> The question is this
>>> Using libwww, is that
>>> (1) get
>>> (2) put
>>> (3) both
>>> (4) something else altogether
>>> ?
>>>
>>> Obviously I am really new to libwww
>>
>> Are you wanting to use a web server, or just a stand alone app?
>>
>> If you are using a CGI on a web server you could have an app on   
>> server A do a put, though I would recommend a post, of the data  
>> and  have sever B running a web server and a CGI that would accept  
>> the  data, parse it and respond appropriately.
>>
>> There are a lot of ways of doing this really...  just depends on  
>> how  complex you want to get.
> MadHat
> This is a stand alone, no web server - just a C program compiled  
> with libwww, which (yes) I have installed and tested (with one of  
> their sample programs).
>
> So, if I use put, or post, it will wait for the reply?  I am trying  
> to keep this really, really, simple (send an XML message, receive  
> the reply which is another XML message).

Oh, that libwww....  so I am not familiar what all that offers.  I  
don't think that will be the easiest way to do it, but I can't say  
for sure.  Basically you'll need to write a HTTP (or what ever  
protocol) server and a client.  Libwww focuses on HTTP, so that would  
be easiest.  I would say look at the sample code and build off that.

--
MadHat (at) Unspecific.com, C²ISSP
E786 7B30 7534 DCC2 94D5  91DE E922 0B21 9DDC 3E98
gpg --keyserver wwwkeys.us.pgp.net --recv-keys 9DDC3E98





More information about the Discuss mailing list