public virtual void setRequestMethod(global::java.lang.String n1){
//XMLVM_BEGIN_WRAPPER[java.net.HttpURLConnection: void setRequestMethod(java.lang.String)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::System.Object _r3_o = null;
    _r2_o = this;
    _r3_o = n1;
    _r0.i = ((global::java.net.HttpURLConnection) _r2_o)._fconnected ? 1 : 0;
    if (_r0.i == 0) goto label16;
    _r0_o = new global::java.net.ProtocolException();
    // Value=luni.5E
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 53)), unchecked((char) unchecked((uint) 69))}));
    _r1_o = global::[email protected]((global::java.lang.String) _r1_o);
    ((global::java.net.ProtocolException) _r0_o).@this((global::java.lang.String) _r1_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.ProtocolException) _r0_o);
    label16:;
    _r0.i = 0;
    label17:;
    _r1_o = ((global::java.net.HttpURLConnection) _r2_o)._fmethodTokens;
    _r1.i = ((global::org.xmlvm._nIArray) _r1_o).Length;
    if (_r0.i < _r1.i) goto label28;
    _r0_o = new global::java.net.ProtocolException();
    ((global::java.net.ProtocolException) _r0_o).@this();
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.ProtocolException) _r0_o);
    label28:;
    _r1_o = ((global::java.net.HttpURLConnection) _r2_o)._fmethodTokens;
    _r1_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r1_o)[_r0.i];
    _r1.i = ((global::java.lang.String) _r1_o).equals((global::java.lang.Object) _r3_o) ? 1 : 0;
    if (_r1.i == 0) goto label45;
    _r1_o = ((global::java.net.HttpURLConnection) _r2_o)._fmethodTokens;
    _r0_o = ((global::org.xmlvm._nArrayAdapter<global::System.Object>) _r1_o)[_r0.i];
    ((global::java.net.HttpURLConnection) _r2_o)._fmethod = (global::java.lang.String) _r0_o;
    return;
    label45:;
    _r0.i = _r0.i + 1;
    goto label17;
//XMLVM_END_WRAPPER[java.net.HttpURLConnection: void setRequestMethod(java.lang.String)]
}
public override global::System.Object getInputStream(){
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl: java.io.InputStream getInputStream()]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    _r2_o = this;
    _r0.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r2_o)._fdoInput ? 1 : 0;
    if (_r0.i != 0) goto label16;
    _r0_o = new global::java.net.ProtocolException();
    // Value=luni.28
    _r1_o = new global::java.lang.String();
    ((global::java.lang.String)_r1_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 56))}));
    _r1_o = global::[email protected]((global::java.lang.String) _r1_o);
    ((global::java.net.ProtocolException) _r0_o).@this((global::java.lang.String) _r1_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.ProtocolException) _r0_o);
    label16:;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r2_o).connect();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r2_o).doRequest();
    _r0.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r2_o)._fresponseCode;
    _r1.i = 400;
    if (_r0.i < _r1.i) goto label40;
    _r0_o = new global::java.io.FileNotFoundException();
    _r1_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r2_o)._furl;
    _r1_o = ((global::java.net.URL) _r1_o).toString();
    ((global::java.io.FileNotFoundException) _r0_o).@this((global::java.lang.String) _r1_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.io.FileNotFoundException) _r0_o);
    label40:;
    _r0_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r2_o)._fuis;
    return (global::java.io.InputStream) _r0_o;
//XMLVM_END_WRAPPER[org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl: java.io.InputStream getInputStream()]
}
public override global::System.Object getOutputStream(){
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl: java.io.OutputStream getOutputStream()]
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::org.xmlvm._nElement _r3;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::System.Object _r7_o = null;
    global::System.Object _r8_o = null;
    _r8_o = this;
    _r6.i = 1;
    // Value=POST
    _r7_o = new global::java.lang.String();
    ((global::java.lang.String)_r7_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)80)), unchecked((char) unchecked((uint) 79)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 84))}));
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fdoOutput ? 1 : 0;
    if (_r4.i != 0) goto label19;
    _r4_o = new global::java.net.ProtocolException();
    // Value=luni.29
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 57))}));
    _r5_o = global::[email protected]((global::java.lang.String) _r5_o);
    ((global::java.net.ProtocolException) _r4_o).@this((global::java.lang.String) _r5_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.ProtocolException) _r4_o);
    label19:;
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fsentRequest ? 1 : 0;
    if (_r4.i == 0) goto label35;
    _r4_o = new global::java.net.ProtocolException();
    // Value=luni.2A
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 65))}));
    _r5_o = global::[email protected]((global::java.lang.String) _r5_o);
    ((global::java.net.ProtocolException) _r4_o).@this((global::java.lang.String) _r5_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.ProtocolException) _r4_o);
    label35:;
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fos;
    if (_r4_o == null) goto label42;
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fos;
    label41:;
    return (global::java.io.OutputStream) _r4_o;
    label42:;
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fmethod;
    // Value=GET
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)71)), unchecked((char) unchecked((uint) 69)), unchecked((char) unchecked((uint) 84))}));
    if (_r4_o != _r5_o) goto label52;
    // Value=POST
    _r4_o = new global::java.lang.String();
    ((global::java.lang.String)_r4_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)80)), unchecked((char) unchecked((uint) 79)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 84))}));
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fmethod = (global::java.lang.String) _r7_o;
    label52:;
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fmethod;
    // Value=PUT
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)80)), unchecked((char) unchecked((uint) 85)), unchecked((char) unchecked((uint) 84))}));
    if (_r4_o == _r5_o) goto label78;
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fmethod;
    // Value=POST
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)80)), unchecked((char) unchecked((uint) 79)), unchecked((char) unchecked((uint) 83)), unchecked((char) unchecked((uint) 84))}));
    if (_r4_o == _r7_o) goto label78;
    _r4_o = new global::java.net.ProtocolException();
    // Value=luni.2B
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 66))}));
    _r6_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fmethod;
    _r5_o = global::[email protected]((global::java.lang.String) _r5_o, (global::java.lang.Object) _r6_o);
    ((global::java.net.ProtocolException) _r4_o).@this((global::java.lang.String) _r5_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.ProtocolException) _r4_o);
    label78:;
    _r3.i = -1;
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._freqHeader;
    // Value=Content-Length
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)67)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 76)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104))}));
    _r0_o = ((global::[email protected]) _r4_o).get((global::java.lang.String) _r5_o);
    if (_r0_o == null) goto label93;
    _r3.i = global::java.lang.Integer.parseInt((global::java.lang.String) _r0_o);
    label93:;
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._freqHeader;
    // Value=Transfer-Encoding
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)84)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 115)), unchecked((char) unchecked((uint) 102)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 69)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 100)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 103))}));
    _r1_o = ((global::[email protected]) _r4_o).get((global::java.lang.String) _r5_o);
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fhttpVersion;
    if (_r4.i <= 0) goto label122;
    if (_r1_o == null) goto label122;
    _r1_o = ((global::java.lang.String) _r1_o).toLowerCase();
    // Value=chunked
    _r4_o = new global::java.lang.String();
    ((global::java.lang.String)_r4_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)99)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 107)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 100))}));
    _r4.i = ((global::java.lang.String) _r4_o).equals((global::java.lang.Object) _r1_o) ? 1 : 0;
    if (_r4.i == 0) goto label122;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fsendChunked = 0!=_r6.i;
    _r3.i = -1;
    label122:;
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fchunkLength;
    if (_r4.i <= 0) goto label129;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fsendChunked = 0!=_r6.i;
    _r3.i = -1;
    label129:;
    _r2.i = 0;
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._ffixedContentLength;
    if (_r4.i < 0) goto label137;
    _r3.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._ffixedContentLength;
    _r2.i = 1;
    label137:;
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fhttpVersion;
    if (_r4.i <= 0) goto label145;
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fsendChunked ? 1 : 0;
    if (_r4.i != 0) goto label147;
    label145:;
    if (_r3.i < 0) goto label160;
    label147:;
    _r4_o = new global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl_2HttpOutputStream();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl_2HttpOutputStream) _r4_o).@this((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o, (int) _r3.i, 0!=_r2.i);
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fos = (global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl_2HttpOutputStream) _r4_o;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o).doRequest();
    _r4_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fos;
    goto label41;
    label160:;
    _r4.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fconnected ? 1 : 0;
    if (_r4.i != 0) goto label167;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o).connect();
    label167:;
    _r4_o = new global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl_2HttpOutputStream();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl_2HttpOutputStream) _r4_o).@this((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o);
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r8_o)._fos = (global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl_2HttpOutputStream) _r4_o;
    goto label41;
//XMLVM_END_WRAPPER[org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl: java.io.OutputStream getOutputStream()]
}
public virtual void doRequestInternal(){
//XMLVM_BEGIN_WRAPPER[org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl: void doRequestInternal()]
    global::System.Object _r0_o = null;
    global::System.Object _r1_o = null;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::org.xmlvm._nElement _r4;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r9_o = null;
    _r9_o = this;
    _r8.i = 305;
    _r7.i = 0;
    _r3.i = 0;
    label4:;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).sendRequest() ? 1 : 0;
    if (_r5.i != 0) goto label11;
    label10:;
    return;
    label11:;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    _r6.i = 407;
    if (_r5.i != _r6.i) goto label81;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).usingProxy() ? 1 : 0;
    if (_r5.i != 0) goto label35;
    _r5_o = new global::java.io.IOException();
    // Value=luni.2D
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 68))}));
    _r6_o = global::[email protected]((global::java.lang.String) _r6_o);
    ((global::java.io.IOException) _r5_o).@this((global::java.lang.String) _r6_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.io.IOException) _r5_o);
    label35:;
    _r5_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresHeader;
    // Value=Proxy-Authenticate
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)80)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 65)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101))}));
    _r0_o = ((global::[email protected]) _r5_o).get((global::java.lang.String) _r6_o);
    if (_r0_o != null) goto label57;
    _r5_o = new global::java.io.IOException();
    // Value=luni.2E
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 69))}));
    _r6_o = global::[email protected]((global::java.lang.String) _r6_o);
    ((global::java.io.IOException) _r5_o).@this((global::java.lang.String) _r6_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.io.IOException) _r5_o);
    label57:;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).endRequest();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).disconnect();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fconnected = 0!=_r7.i;
    _r1_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).getAuthorizationCredentials((global::java.lang.String) _r0_o);
    if (_r1_o != null) goto label75;
    label71:;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).getContentStream();
    goto label10;
    label75:;
    // Value=Proxy-Authorization
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)80)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 120)), unchecked((char) unchecked((uint) 121)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 65)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 122)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).setRequestProperty((global::java.lang.String) _r5_o, (global::java.lang.String) _r1_o);
    goto label4;
    label81:;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    _r6.i = 401;
    if (_r5.i != _r6.i) goto label117;
    _r5_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresHeader;
    // Value=WWW-Authenticate
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)87)), unchecked((char) unchecked((uint) 87)), unchecked((char) unchecked((uint) 87)), unchecked((char) unchecked((uint) 45)), unchecked((char) unchecked((uint) 65)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 101)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 101))}));
    _r0_o = ((global::[email protected]) _r5_o).get((global::java.lang.String) _r6_o);
    if (_r0_o == null) goto label71;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).endRequest();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).disconnect();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fconnected = 0!=_r7.i;
    _r1_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).getAuthorizationCredentials((global::java.lang.String) _r0_o);
    if (_r1_o == null) goto label71;
    // Value=Authorization
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)65)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 104)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 114)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 122)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).setRequestProperty((global::java.lang.String) _r5_o, (global::java.lang.String) _r1_o);
    goto label4;
    label117:;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).getInstanceFollowRedirects() ? 1 : 0;
    if (_r5.i == 0) goto label71;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    _r6.i = 300;
    if (_r5.i == _r6.i) goto label151;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    _r6.i = 301;
    if (_r5.i == _r6.i) goto label151;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    _r6.i = 302;
    if (_r5.i == _r6.i) goto label151;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    _r6.i = 303;
    if (_r5.i == _r6.i) goto label151;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    if (_r5.i != _r8.i) goto label71;
    label151:;
    _r5_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fos;
    if (_r5_o != null) goto label71;
    _r3.i = _r3.i + 1;
    _r5.i = 4;
    if (_r3.i <= _r5.i) goto label172;
    _r5_o = new global::java.net.ProtocolException();
    // Value=luni.2F
    _r6_o = new global::java.lang.String();
    ((global::java.lang.String)_r6_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)108)), unchecked((char) unchecked((uint) 117)), unchecked((char) unchecked((uint) 110)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 46)), unchecked((char) unchecked((uint) 50)), unchecked((char) unchecked((uint) 70))}));
    _r6_o = global::[email protected]((global::java.lang.String) _r6_o);
    ((global::java.net.ProtocolException) _r5_o).@this((global::java.lang.String) _r6_o);
    throw new global::org.xmlvm._nExceptionAdapter((global::java.net.ProtocolException) _r5_o);
    label172:;
    // Value=Location
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)76)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 99)), unchecked((char) unchecked((uint) 97)), unchecked((char) unchecked((uint) 116)), unchecked((char) unchecked((uint) 105)), unchecked((char) unchecked((uint) 111)), unchecked((char) unchecked((uint) 110))}));
    _r2_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).getHeaderField((global::java.lang.String) _r5_o);
    if (_r2_o == null) goto label71;
    _r5.i = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fresponseCode;
    if (_r5.i != _r8.i) goto label255;
    _r4.i = 0;
    _r5_o = new global::java.lang.StringBuilder();
    ((global::java.lang.StringBuilder) _r5_o).@this();
    _r6_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._furl;
    _r6_o = ((global::java.net.URL) _r6_o).getProtocol();
    _r5_o = ((global::java.lang.StringBuilder) _r5_o).append((global::java.lang.String) _r6_o);
    _r6.i = 58;
    _r5_o = ((global::java.lang.StringBuilder) _r5_o).append((char) _r6.i);
    _r5_o = ((global::java.lang.StringBuilder) _r5_o).toString();
    _r5.i = ((global::java.lang.String) _r2_o).startsWith((global::java.lang.String) _r5_o) ? 1 : 0;
    if (_r5.i == 0) goto label228;
    _r5_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._furl;
    _r5_o = ((global::java.net.URL) _r5_o).getProtocol();
    _r5.i = ((global::java.lang.String) _r5_o).length();
    _r4.i = _r5.i + 1;
    label228:;
    // Value=//
    _r5_o = new global::java.lang.String();
    ((global::java.lang.String)_r5_o).@this(new global::org.xmlvm._nArrayAdapter<char>(new char[] {unchecked((char) unchecked((uint)47)), unchecked((char) unchecked((uint) 47))}));
    _r5.i = ((global::java.lang.String) _r2_o).startsWith((global::java.lang.String) _r5_o, (int) _r4.i) ? 1 : 0;
    if (_r5.i == 0) goto label238;
    _r4.i = _r4.i + 2;
    label238:;
    _r5_o = ((global::java.lang.String) _r2_o).substring((int) _r4.i);
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).setProxy((global::java.lang.String) _r5_o);
    label245:;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).endRequest();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o).disconnect();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fconnected = 0!=_r7.i;
    goto label4;
    label255:;
    _r5_o = new global::java.net.URL();
    _r6_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._furl;
    ((global::java.net.URL) _r5_o).@this((global::java.net.URL) _r6_o, (global::java.lang.String) _r2_o);
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._furl = (global::java.net.URL) _r5_o;
    _r5_o = ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._furl;
    _r5_o = ((global::java.net.URL) _r5_o).getHost();
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fhostName = (global::java.lang.String) _r5_o;
    _r5.i = -1;
    ((global::org.apache.harmony.luni.@internal.net.www.protocol.http.HttpURLConnectionImpl) _r9_o)._fhostPort = _r5.i;
    goto label245;
//XMLVM_END_WRAPPER[org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl: void doRequestInternal()]
}