2 Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved.
3 Available via Academic Free License >= 2.1 OR the modified BSD license.
4 see: http://dojotoolkit.org/license for details
8 if(!dojo._hasResource["dojox.io.httpParse"]){
9 dojo._hasResource["dojox.io.httpParse"]=true;
10 dojo.provide("dojox.io.httpParse");
11 dojox.io.httpParse=function(_1,_2,_3){
16 var _7=_1.match(/(\n*[^\n]+)/);
20 _1=_1.substring(_7[0].length+1);
22 var _8=_1.match(/([^\n]+\n)*/)[0];
23 _1=_1.substring(_8.length);
24 var _9=_1.substring(0,1);
28 _8=_8.match(/[^:\n]+:[^\n]+\n/g);
29 for(var j=0;j<_8.length;j++){
30 var _c=_8[j].indexOf(":");
31 _6[_8[j].substring(0,_c)]=_8[j].substring(_c+1).replace(/(^[ \r\n]*)|([ \r\n]*)$/g,"");
34 var _d={status:parseInt(_7[1],10),statusText:_7[2],readyState:3,getAllResponseHeaders:function(){
36 },getResponseHeader:function(_e){
39 var _f=_6["Content-Length"];
43 _10=_1.substring(0,_f);
48 if((_10=_1.match(/(.*)HTTP\/\d\.\d \d\d\d[\w\s]*\n/))){
59 _1=_1.substring(_10.length);
62 _d._lastIndex=_5-_1.length;