>I don't know whether the Http implementations allow the host to be >specified HTTP Client does allow you to override the host header and specify a virtual host (e.g. when implementing a reverse proxy this is useful)
regards deepak On Mon, Apr 11, 2011 at 3:16 AM, sebb <seb...@gmail.com> wrote: > On 11 April 2011 08:55, apc <a...@apc.kg> wrote: > > How can I override Host header in HTTP request? > > The Host header is generated by the HTTP stack from the URL, and > cannot currently be overridden. > > > I tried adding HTTP Header Manager and set Host header in it, but I see > no > > changes in my HTTP requests. > > See above. > > > Adding to "hosts" file is not applicable since I have no root privileges > at > > test generator. > > > > Any ideas? > > If the target host is a virtual host, at some point the virtual host > names will need to be defined in DNS, otherwise it will not be > accessible by browsers. So maybe you can bring that stage forward. > > I don't know whether the Http implementations allow the host to be > specified; your only other option at present is to change the JMeter > code locally to remove the host restriction. > > > Best regards, > > Andrey > > > > -- > > View this message in context: > http://jmeter.512774.n5.nabble.com/How-to-override-Host-header-tp4295391p4295391.html > > Sent from the JMeter - User mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscr...@jakarta.apache.org > For additional commands, e-mail: jmeter-user-h...@jakarta.apache.org > >