platform/shared/rubyJVM/src/com/rho/net/NetRequest.java in rhodes-1.5.4 vs platform/shared/rubyJVM/src/com/rho/net/NetRequest.java in rhodes-1.5.5
- old
+ new
@@ -134,32 +134,37 @@
int code = -1;
try{
closeConnection();
m_connection = RhoClassFactory.getNetworkAccess().connect(strUrl, m_bIgnoreSuffixOnSim);
+ LOG.INFO("connection done");
if ( oSession != null )
{
String strSession = oSession.getSession();
LOG.INFO("Cookie : " + (strSession != null ? strSession : "") );
if ( strSession != null && strSession.length() > 0 )
m_connection.setRequestProperty("Cookie", strSession );
}
m_connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
- m_connection.setRequestProperty("Connection", "keep-alive");
+ //m_connection.setRequestProperty("Connection", "keep-alive");
//m_connection.setRequestProperty("Accept", "application/x-www-form-urlencoded,application/json,text/html");
writeHeaders(headers);
+ LOG.INFO("writeHeaders done");
if ( strBody != null && strBody.length() > 0 )
{
m_connection.setRequestMethod(strMethod);
os = m_connection.openOutputStream();
os.write(strBody.getBytes(), 0, strBody.length());
}else
m_connection.setRequestMethod(strMethod);
+ LOG.INFO("write body done");
+
is = m_connection.openInputStream();
+ LOG.INFO("openInputStream done");
code = m_connection.getResponseCode();
LOG.INFO("getResponseCode : " + code);
if (code != IHttpConnection.HTTP_OK)