custom user agent option with ffmpeg

For TF1 plugin, I parsed an http direct link, but I need to set a specific useragent and cookie.
Is it possible to provide it to ffmpeg contentUrl ?
I try this on my TF1.grrovy plugin without success:
contentUrl = httpDirectLink+"|User-Agent="+URLEncoder.encode(USER_AGENT)+'&Cookie='+URLEncoder.encode('seen='+fileId)
Is it possible to provide it to ffmpeg contentUrl ?
I try this on my TF1.grrovy plugin without success:
contentUrl = httpDirectLink+"|User-Agent="+URLEncoder.encode(USER_AGENT)+'&Cookie='+URLEncoder.encode('seen='+fileId)