Forum Discussion

tongilcoto's avatar
tongilcoto
New Contributor
12 years ago

How to avoid Host http header at a http teststep

Hi everyone

My first post ...

Well, i have a simple question: how can i tell Soap Ui not to create the standard Host http header for a "http" test step ?
If the header is not present, soap ui just creates it using request url host and port, if present. I need to have a request without the Host header.
If the header is present, soap ui does nothing, as expected.

1 Reply

  • tongilcoto's avatar
    tongilcoto
    New Contributor
    I've just read this paragraph at the HTTP 1.1 RFC

    http://tools.ietf.org/html/rfc2616#section-14.23

    A client MUST include a Host header field in all HTTP/1.1 request
    messages . If the requested URI does not include an Internet host
    name for the service being requested, then the Host header field MUST
    be given with an empty value. An HTTP/1.1 proxy MUST ensure that any
    request message it forwards does contain an appropriate Host header
    field that identifies the service being requested by the proxy. All
    Internet-based HTTP/1.1 servers MUST respond with a 400 (Bad Request)
    status code to any HTTP/1.1 request message which lacks a Host header
    field.

    So i guess soap ui is just following http 1.1 rfc

    Can anyone confirm it?

    Thank you very much