Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions common/src/main/java/HTTPClient/HTTPConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -1044,14 +1044,21 @@ public HTTPResponse Get(String file, String query)
* the socket.
* @exception ModuleException if an exception is encountered in any module.
*/
public HTTPResponse Get(String file, String query, NVPair[] headers)
public HTTPResponse Get(String file, String query, NVPair[] headers)
throws IOException, ModuleException
{
return Get(file, query, headers, null);
}


public HTTPResponse Get(String file, String query, NVPair[] headers, byte data[])
throws IOException, ModuleException
{
String File = stripRef(file);
if (query != null && query.length() > 0)
File += "?" + Codecs.URLEncode(query);

return setupRequest("GET", File, headers, null, null);
return setupRequest("GET", File, headers, data, null);
}


Expand Down
5 changes: 4 additions & 1 deletion common/src/main/java/com/genexus/internet/HttpClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ public void execute(String method, String url)

if (method.equalsIgnoreCase("GET"))
{
res = con.Get(url, "", hashtableToNVPair(headersToSend));
if (contentToSend.size() > 0)
res = con.Get(url, "", hashtableToNVPair(headersToSend), getData());
else
res = con.Get(url, "", hashtableToNVPair(headersToSend));
}
else if (method.equalsIgnoreCase("POST"))
{
Expand Down