diff --git a/src/main/java/com/exacttarget/fuelsdk/ETRestConnection.java b/src/main/java/com/exacttarget/fuelsdk/ETRestConnection.java index eeebd007..c76403ff 100644 --- a/src/main/java/com/exacttarget/fuelsdk/ETRestConnection.java +++ b/src/main/java/com/exacttarget/fuelsdk/ETRestConnection.java @@ -211,12 +211,14 @@ private HttpURLConnection sendRequest(URL url, Method method, String payload) case GET: connection.setDoInput(true); connection.setRequestProperty("Accept", "application/json"); + connection.setRequestProperty("User-Agent", "FuelSDK-Java"); break; case POST: case PATCH: case DELETE: connection.setDoOutput(true); connection.setRequestProperty("Content-Type", "application/json"); + connection.setRequestProperty("User-Agent", "FuelSDK-Java"); break; default: throw new ETSdkException("unsupported request method: " + method.toString());