Sven Van Caekenberghe wrote:
.Hi Ben, On 01 Oct 2013, at 19:48, Ben Coman <[email protected]> wrote: Thanks for confirming that. Referring to [5]&[6], do you think the client forcing a HTTP/1.0 connection could help get proper progress bars? ...and how would that look adapting my Workspace script [2] ? Maybe a downside of forcing HTTP/1.0 would requiring the server to not be a VirtualHost (??). Does anyone know how the configuration of the servers used by Pharo Launcher relate to this? -ben [5] http://webmasters.stackexchange.com/questions/38738/how-to-avoid-chunked-transfer-encoding [6] http://www.jargonsoft.com/support/knowledgebase.php?article=12 cheers -ben [1] http://stackoverflow.com/questions/2419281/content-length-header-versus-chunked-encoding "[2]start------------------Workspace-script----------" workBlock := [ ZnClient new signalProgress: true ; url: 'http://files.pharo.org/image/30/' ; enforceHttpSuccess: true ; beOneShot ; accept: 'text/html;charset=utf-8' ; enforceAcceptContentType: true ; logToTranscript ; get ]. UIManager default informUserDuring: [ :bar| [ workBlock value] on: HTTPProgress do: [ : progress | Transcript crShow: '# ' , progress printString , ' total=' , progress total asString , ' amount=' , progress amount asString. bar label: progress printString. progress isEmpty ifFalse: [ bar current: progress percentage ]. progress resume. ]. ]. "[2]end------------------Workspace-script----------" "[3]start--------------Transcript------" # HTTPProgress: Connecting to files.pharo.org total=nil amount=nil 2013-10-02 00:43:36 428852 I Wrote a ZnRequest(GET /image/30/) 2013-10-02 00:43:36 428852 D Sent headers Accept: text/html;charset=utf-8 User-Agent: Zinc HTTP Components 1.0 Connection: close Host: files.pharo.org # HTTPProgress: Writing request total=nil amount=nil # HTTPProgress: Reading response total=nil amount=nil ZnUtils>>signalProgress: 16384 total: nil # HTTPProgress: Tranferred 16.38k bytes ... total=nil amount=nil ZnUtils>>signalProgress: 32768 total: nil # HTTPProgress: Tranferred 32.77k bytes ... total=nil amount=nil ZnUtils>>signalProgress: 49152 total: nil # HTTPProgress: Tranferred 49.15k bytes ... total=nil amount=nil ZnUtils>>signalProgress: 65536 total: nil # HTTPProgress: Tranferred 65.54k bytes ... total=nil amount=nil ZnUtils>>signalProgress: 81920 total: nil # HTTPProgress: Tranferred 81.92k bytes ... total=nil amount=nil ZnUtils>>signalProgress: 85434 total: nil # HTTPProgress: Tranferred 85.43k bytes ... total=nil amount=nil 2013-10-02 00:43:38 428852 I Read a ZnResponse(200 OK text/html;h5ai=0.22.1;charset=UTF-8 85444B) 2013-10-02 00:43:38 428852 D Received headers Date: Tue, 01 Oct 2013 16:43:34 GMT Transfer-Encoding: chunked Content-Length: 85444 Vary: Accept-Encoding Server: Apache Connection: close Content-Type: text/html;h5ai=0.22.1;charset=UTF-8 2013-10-02 00:43:38 428852 T GET /image/30/ 200 85444B 1874ms "[3]end--------------Transcript------" "[4]start----------ZnStatusLine>>readReal-Headers--------" HTTP/1.1 200 OK Date: Tue, 01 Oct 2013 17:23:55 GMT Server: Apache Vary: Accept-Encoding Connection: close Transfer-Encoding: chunked Content-Type: text/html;h5ai=0.22.1;charset=UTF-8 "[4]end-----------Real-Headers--------" |
- [Pharo-dev] HTTPProgress Content-Length v. Ben Coman
- Re: [Pharo-dev] HTTPProgress Content-Length v. Sven Van Caekenberghe
- Re: [Pharo-dev] HTTPProgress Content-Length... btc
- Re: [Pharo-dev] HTTPProgress Content-Le... Sven Van Caekenberghe
