[Prev][Next][Index][Thread]
Re: Can I use PUT,POST method in preemtive mode?
-
To: Henrik Frystyk Nielsen <frystyk@w3.org>
-
Subject: Re: Can I use PUT,POST method in preemtive mode?
-
From: Kenji OTA <ota@nttspe.slab.ntt.jp>
-
Date: Thu, 11 Jan 1996 17:09:23 +0900
-
Cc: www-lib@w3.org
-
From ota@nttspe.slab.ntt.jp Thu Jan 11 03: 09:29 1996
-
In-Reply-To: Your message of Wed, 10 Jan 1996 21:54:30 -0500. <9601110256.AA11070@www20>
-
Message-Id: <199601110809.RAA16015@nttspe.slab.ntt.jp>
Thank you for your reply, Henrik.
>> > I want to develop a tool using POST method in preemtive mode.
>> > And I made a simple program by modifing the distributed sample tool -
>> > ComLine.
>> > When the program is executed, the program is exited at the
>> > HTCopyAnchor() and core file is created.
>> >
>> > So, my question is:
>> >
>> > (1)Can I use HTCopyAnchor() in preemtive mode?
>> > (2)Can I use PUT or POST method in preemtive mode?
>> > (3)Does anyone have a example using PUT,POST method in preemtive mode?
>>
>> I know there are some problems with PUT an POST, but the model
>> should work in
>> preemtive mode even though your example shows something different. I am
>> currently looking at the model and making it more stable so if you
>> have some
>> specific problems then please send them to the list.
I use libwww(ver.4) with some GUI building software. In this software,
a specific event loop runs. I can extend the software by only making a
function of C language that is called when an GUI event arises. So, I
want to use PUT and POST method in preemtive mode.
Then, as a prototype, I modified the HTLine.c file in the ComLine
archive. The difference (Unix diff command) between the original
HTLine.c and my modified one is as follows,
----------8<----------8<----------8<----------8<----------8<----------
477a478,479
> HTRequest_setPreemtive (cl->request, YES);
>
493c495
< HTEvent_Loop(cl->request);
---
> /* HTEvent_Loop(cl->request);*/
----------8<----------8<----------8<----------8<----------8<----------
If I execute the modified comline(w3c) with -post option, it occurs an
error and core dumped.
And, that with -head option returns nothing.
That with -get option seems to do well.
Thank you.
-------------------------------
Kenji Ota (ota@slab.ntt.jp)
NTT Software Lab. (Tokyo,Japan)
References: