Lines 103-108
Link Here
|
103 |
request = theRequest; |
103 |
request = theRequest; |
104 |
} |
104 |
} |
105 |
|
105 |
|
|
|
106 |
/* |
107 |
* Expect the server to reply with 100 Continue interim response |
108 |
*/ |
106 |
public void setUseContinue(boolean theUseContinueFlag) { |
109 |
public void setUseContinue(boolean theUseContinueFlag) { |
107 |
useContinue = theUseContinueFlag; |
110 |
useContinue = theUseContinueFlag; |
108 |
} |
111 |
} |
Lines 135-140
Link Here
|
135 |
return responseBody; |
138 |
return responseBody; |
136 |
} |
139 |
} |
137 |
|
140 |
|
|
|
141 |
public List<String> getResponseBodyUriElements() { |
142 |
return bodyUriElments; |
143 |
} |
144 |
|
138 |
public void setUseContentLength(boolean b) { |
145 |
public void setUseContentLength(boolean b) { |
139 |
useContentLength = b; |
146 |
useContentLength = b; |
140 |
} |
147 |
} |
Lines 180-196
Link Here
|
180 |
|
187 |
|
181 |
} |
188 |
} |
182 |
|
189 |
|
|
|
190 |
/* |
191 |
* Send the component parts of the request |
192 |
* (be tolerant and simply skip null entries) |
193 |
*/ |
183 |
public void sendRequest() throws InterruptedException, IOException { |
194 |
public void sendRequest() throws InterruptedException, IOException { |
184 |
// Send the request |
|
|
185 |
boolean first = true; |
195 |
boolean first = true; |
186 |
for (String requestPart : request) { |
196 |
for (String requestPart : request) { |
187 |
if (first) { |
197 |
if (requestPart != null) { |
188 |
first = false; |
198 |
if (first) { |
189 |
} else { |
199 |
first = false; |
190 |
Thread.sleep(requestPause); |
200 |
} |
|
|
201 |
else { |
202 |
Thread.sleep(requestPause); |
203 |
} |
204 |
writer.write(requestPart); |
205 |
writer.flush(); |
191 |
} |
206 |
} |
192 |
writer.write(requestPart); |
|
|
193 |
writer.flush(); |
194 |
} |
207 |
} |
195 |
} |
208 |
} |
196 |
|
209 |
|