/[projects]/dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/HttpUtil.java
ViewVC logotype

Diff of /dao/FuldDaekningWorker/src/dk/daoas/fulddaekning/HttpUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2721 by torben, Mon Sep 28 18:15:11 2015 UTC revision 2722 by torben, Mon Sep 28 19:47:17 2015 UTC
# Line 112  public class HttpUtil { Line 112  public class HttpUtil {
112                  URLConnection connection = url.openConnection();                  URLConnection connection = url.openConnection();
113                                    
114                  connection.setConnectTimeout(timeout);                  connection.setConnectTimeout(timeout);
115                  connection.setReadTimeout(timeout);                  connection.setReadTimeout(timeout * 10);
116                  InputStream is = connection.getInputStream();                  InputStream is = connection.getInputStream();
117                                    
118                  return readInputStream(is);                  return readInputStream(is);
# Line 124  public class HttpUtil { Line 124  public class HttpUtil {
124                  connection.setDoOutput(true);                  connection.setDoOutput(true);
125                  connection.setRequestMethod("POST");                              connection.setRequestMethod("POST");            
126                  connection.setConnectTimeout(timeout);                  connection.setConnectTimeout(timeout);
127                  connection.setReadTimeout(timeout);                  connection.setReadTimeout(timeout * 10);
128                                    
129                  OutputStream os = connection.getOutputStream();                  OutputStream os = connection.getOutputStream();
130                  os.write( data.getBytes() );                  os.write( data.getBytes() );

Legend:
Removed from v.2721  
changed lines
  Added in v.2722

  ViewVC Help
Powered by ViewVC 1.1.20