[squeak-dev] Why does this trivial WebServer evocation hang Squeak?

Lawson English lenglish5 at cox.net
Thu Oct 7 11:21:50 UTC 2010


  So, I redid the code and finally got the right xml-rpc from the viewer.


+++++++++++++++++++
request= nil.

flag := false.
(WebServer reset default) listenOn: 8081.

WebServer default addService: '/' action:
[:req| |newResponse|  request := req.
     flag ifFalse:
     [newResponse := request newResponse  protocol: 'HTTP/1.1' code: 100.
     request sendResponse: newResponse content: 'Continue'.
     flag := true..
     ]
     ifTrue: [ req send200Response: 'Hello World' ]

].
++++++++++++++++++++++++++++++++++++++++++++

Now I'm stuck trying to use that myself. I keep getting invalid XML-RPC 
errors back from teh SL server, even though I'm sending the entire 
(hopefully valid) XML-RPC text that the viewer sent to the squeak WebServer.

No doubt some trivial thing I'm still doing wrong.

But at least its more nearly almost working than before.

;-)

Lawson



More information about the Squeak-dev mailing list