Implemented ability to tweak the user-agent as desired
Implemented ability to tweak the user-agent as desired

--- a/client-side/config
+++ b/client-side/config
@@ -12,7 +12,7 @@
 MAX_CHUNK_SIZE=6553600 # Maximum chunk size to request (bytes, default is 6553600bytes/50MB)
 MAX_REQUESTS=100 # Maximum number of requests to make per session
 RANDOMIZE_CHUNKSIZE="y" # Set this to n if you want to use the same size chunk-size throughout a session
-
+USER_AGENT='HaystackGen V0.1'
 
 # Data uploads
 SEND_DATA="y" # Should random data also be sent upstream?

--- a/client-side/request_generator.sh
+++ b/client-side/request_generator.sh
@@ -22,9 +22,9 @@
 	if [ "$UPSTREAM" == 'n' ]
 	then
 		# Place the request
-		curl -H "Host: $HOST" -H "Range: bytes=$START-$END" "$URL" > /dev/null 2> /dev/null
+		curl -H "User-agent: $USER_AGENT" -H "Host: $HOST" -H "Range: bytes=$START-$END" "$URL" > /dev/null 2> /dev/null
 	else
-		curl -X POST -d "$DATA" -H "Host: $HOST" -H "Range: bytes=$START-$END" "$URL" > /dev/null 2> /dev/null
+		curl -X POST -d "$DATA" -H "User-agent: $USER_AGENT" -H "Host: $HOST" -H "Range: bytes=$START-$END" "$URL" > /dev/null 2> /dev/null
 	fi
 }