http error 400 Bad Request on name but IP address worksBrowser sends http request with RANGERedirecting requests that would result in an HTTP 400 (Bad Request) error (Apache 2.2)HTTP Hostname to IP Address Routing400 bad request: use the HTTPS scheme to access this URL, restclient pythonError 400 on LAN accessIs it bad to redirect http to https?Any semblance of originally-requested domain name in HTTP, post DNS-resolution?Serving port 443 over http creates 400 Bad Request Error instead of redirectHTTP 400 Bad Request on Apache/Windows whenever I use ProxyPass400 Bad Request at request, http://localhost/favicon.ico

Turing patterns

Avoiding cliches when writing gods

Russian equivalents of "no love lost"

How to retract an idea already pitched to an employer?

Smooth switching between 12 V batteries, with a toggle switch

Is this a rational use of the haveibeenpwned passwords list?

Does a 3rd-level Wolf Totem barbarian get advantage against enemies when an ally is within 5 feet of the enemy?

Do any instruments not produce overtones?

How can I defend against Pokémon Cinccino “Fluffy Tail”

What does the "c." listed under weapon length mean?

How to build suspense or so to establish and justify xenophobia of characters in the eyes of the reader?

Tcolor box Dotted box

Last survivors from different time periods living together

Where does "0 packages can be updated." come from?

How did students remember what to practise between lessons without any sheet music?

Is any name of Vishnu Siva?

Are "living" organ banks practical?

Company did not petition for visa in a timely manner. Is asking me to work from overseas, but wants me to take a paycut

What does this sentence from Dazai Osamu's 「人間失格」 containing 「女の修行」 mean?

Efficient integer floor function in C++

Show mappings for all function keys

Why does Kathryn feel that she's already met Cole in 1990?

Example of non-trivial functors

How much salt (or any other substance one can find in a kitchen) do I need to add to make water boil at 104 °C?



http error 400 Bad Request on name but IP address works


Browser sends http request with RANGERedirecting requests that would result in an HTTP 400 (Bad Request) error (Apache 2.2)HTTP Hostname to IP Address Routing400 bad request: use the HTTPS scheme to access this URL, restclient pythonError 400 on LAN accessIs it bad to redirect http to https?Any semblance of originally-requested domain name in HTTP, post DNS-resolution?Serving port 443 over http creates 400 Bad Request Error instead of redirectHTTP 400 Bad Request on Apache/Windows whenever I use ProxyPass400 Bad Request at request, http://localhost/favicon.ico






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have got a Vodafone "EasyBox 904 xDSL" router which has a LAN facing administration interface on http (not https) on port 80. I can access it fine when I use



http://[ip of the router]


For convenience I added an entry into our local DNS server which points to that IP.



Pinging that address confirms that the name lookup works:



ping router.our.domain
PING router.our.domain ([ip of the router]) 56(84) bytes of data.
64 bytes from _gateway ([ip of the router]): icmp_seq=1 ttl=64 time=0.448 ms


(note the "_gateway" in the response, no idea where that comes from)
but when I try to use that name in the web browser, I get an http error 400:



http://router.our.domain


Just to be sure this isn't an artefact of the web browser I used w3m:



400 Bad Request

Your Client sent a query that this server could not understand

Reason: Invalid HOST


The browser is connecting directly, there is no proxy involved.



I guess this has something to do with the router's webserver trying to match the name to a local host name and failing. But that's only a guess. I could not find a setting for a host name in the router configuration.



Any hints on what I could try to find the reason?










share|improve this question




























    0















    I have got a Vodafone "EasyBox 904 xDSL" router which has a LAN facing administration interface on http (not https) on port 80. I can access it fine when I use



    http://[ip of the router]


    For convenience I added an entry into our local DNS server which points to that IP.



    Pinging that address confirms that the name lookup works:



    ping router.our.domain
    PING router.our.domain ([ip of the router]) 56(84) bytes of data.
    64 bytes from _gateway ([ip of the router]): icmp_seq=1 ttl=64 time=0.448 ms


    (note the "_gateway" in the response, no idea where that comes from)
    but when I try to use that name in the web browser, I get an http error 400:



    http://router.our.domain


    Just to be sure this isn't an artefact of the web browser I used w3m:



    400 Bad Request

    Your Client sent a query that this server could not understand

    Reason: Invalid HOST


    The browser is connecting directly, there is no proxy involved.



    I guess this has something to do with the router's webserver trying to match the name to a local host name and failing. But that's only a guess. I could not find a setting for a host name in the router configuration.



    Any hints on what I could try to find the reason?










    share|improve this question
























      0












      0








      0








      I have got a Vodafone "EasyBox 904 xDSL" router which has a LAN facing administration interface on http (not https) on port 80. I can access it fine when I use



      http://[ip of the router]


      For convenience I added an entry into our local DNS server which points to that IP.



      Pinging that address confirms that the name lookup works:



      ping router.our.domain
      PING router.our.domain ([ip of the router]) 56(84) bytes of data.
      64 bytes from _gateway ([ip of the router]): icmp_seq=1 ttl=64 time=0.448 ms


      (note the "_gateway" in the response, no idea where that comes from)
      but when I try to use that name in the web browser, I get an http error 400:



      http://router.our.domain


      Just to be sure this isn't an artefact of the web browser I used w3m:



      400 Bad Request

      Your Client sent a query that this server could not understand

      Reason: Invalid HOST


      The browser is connecting directly, there is no proxy involved.



      I guess this has something to do with the router's webserver trying to match the name to a local host name and failing. But that's only a guess. I could not find a setting for a host name in the router configuration.



      Any hints on what I could try to find the reason?










      share|improve this question














      I have got a Vodafone "EasyBox 904 xDSL" router which has a LAN facing administration interface on http (not https) on port 80. I can access it fine when I use



      http://[ip of the router]


      For convenience I added an entry into our local DNS server which points to that IP.



      Pinging that address confirms that the name lookup works:



      ping router.our.domain
      PING router.our.domain ([ip of the router]) 56(84) bytes of data.
      64 bytes from _gateway ([ip of the router]): icmp_seq=1 ttl=64 time=0.448 ms


      (note the "_gateway" in the response, no idea where that comes from)
      but when I try to use that name in the web browser, I get an http error 400:



      http://router.our.domain


      Just to be sure this isn't an artefact of the web browser I used w3m:



      400 Bad Request

      Your Client sent a query that this server could not understand

      Reason: Invalid HOST


      The browser is connecting directly, there is no proxy involved.



      I guess this has something to do with the router's webserver trying to match the name to a local host name and failing. But that's only a guess. I could not find a setting for a host name in the router configuration.



      Any hints on what I could try to find the reason?







      http hostname 400






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 21 at 8:18









      dummzeuchdummzeuch

      4071616




      4071616




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Seems like web server in the device doesn't like host field in the HTTP request and supports the connections only by ip address or by some special host name.



          The documentation says to connect to addministrative web interface you should use domain name easy.box or ip address 192.168.2.1.



          The _gateway in the ping output comes from reverse address lookup (resolve the domain name by ip address) with built-in dns server. You can avoid the reverse lookup with -n option of ping.






          share|improve this answer























          • Thanks. Unfortunately easy.box doesn't work: Name lookup fails. The IP adress from the documentation also does not work because we do not use the default class C network and the router also is not the dhcp server. I guess I must live with using the router's IP.

            – dummzeuch
            May 21 at 8:58











          • You can add easy.box record into hosts file.

            – Anton Danilov
            May 21 at 10:25











          • Yes, but that would only work on that computer.

            – dummzeuch
            May 22 at 9:13











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f968182%2fhttp-error-400-bad-request-on-name-but-ip-address-works%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Seems like web server in the device doesn't like host field in the HTTP request and supports the connections only by ip address or by some special host name.



          The documentation says to connect to addministrative web interface you should use domain name easy.box or ip address 192.168.2.1.



          The _gateway in the ping output comes from reverse address lookup (resolve the domain name by ip address) with built-in dns server. You can avoid the reverse lookup with -n option of ping.






          share|improve this answer























          • Thanks. Unfortunately easy.box doesn't work: Name lookup fails. The IP adress from the documentation also does not work because we do not use the default class C network and the router also is not the dhcp server. I guess I must live with using the router's IP.

            – dummzeuch
            May 21 at 8:58











          • You can add easy.box record into hosts file.

            – Anton Danilov
            May 21 at 10:25











          • Yes, but that would only work on that computer.

            – dummzeuch
            May 22 at 9:13















          0














          Seems like web server in the device doesn't like host field in the HTTP request and supports the connections only by ip address or by some special host name.



          The documentation says to connect to addministrative web interface you should use domain name easy.box or ip address 192.168.2.1.



          The _gateway in the ping output comes from reverse address lookup (resolve the domain name by ip address) with built-in dns server. You can avoid the reverse lookup with -n option of ping.






          share|improve this answer























          • Thanks. Unfortunately easy.box doesn't work: Name lookup fails. The IP adress from the documentation also does not work because we do not use the default class C network and the router also is not the dhcp server. I guess I must live with using the router's IP.

            – dummzeuch
            May 21 at 8:58











          • You can add easy.box record into hosts file.

            – Anton Danilov
            May 21 at 10:25











          • Yes, but that would only work on that computer.

            – dummzeuch
            May 22 at 9:13













          0












          0








          0







          Seems like web server in the device doesn't like host field in the HTTP request and supports the connections only by ip address or by some special host name.



          The documentation says to connect to addministrative web interface you should use domain name easy.box or ip address 192.168.2.1.



          The _gateway in the ping output comes from reverse address lookup (resolve the domain name by ip address) with built-in dns server. You can avoid the reverse lookup with -n option of ping.






          share|improve this answer













          Seems like web server in the device doesn't like host field in the HTTP request and supports the connections only by ip address or by some special host name.



          The documentation says to connect to addministrative web interface you should use domain name easy.box or ip address 192.168.2.1.



          The _gateway in the ping output comes from reverse address lookup (resolve the domain name by ip address) with built-in dns server. You can avoid the reverse lookup with -n option of ping.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered May 21 at 8:40









          Anton DanilovAnton Danilov

          1,4021711




          1,4021711












          • Thanks. Unfortunately easy.box doesn't work: Name lookup fails. The IP adress from the documentation also does not work because we do not use the default class C network and the router also is not the dhcp server. I guess I must live with using the router's IP.

            – dummzeuch
            May 21 at 8:58











          • You can add easy.box record into hosts file.

            – Anton Danilov
            May 21 at 10:25











          • Yes, but that would only work on that computer.

            – dummzeuch
            May 22 at 9:13

















          • Thanks. Unfortunately easy.box doesn't work: Name lookup fails. The IP adress from the documentation also does not work because we do not use the default class C network and the router also is not the dhcp server. I guess I must live with using the router's IP.

            – dummzeuch
            May 21 at 8:58











          • You can add easy.box record into hosts file.

            – Anton Danilov
            May 21 at 10:25











          • Yes, but that would only work on that computer.

            – dummzeuch
            May 22 at 9:13
















          Thanks. Unfortunately easy.box doesn't work: Name lookup fails. The IP adress from the documentation also does not work because we do not use the default class C network and the router also is not the dhcp server. I guess I must live with using the router's IP.

          – dummzeuch
          May 21 at 8:58





          Thanks. Unfortunately easy.box doesn't work: Name lookup fails. The IP adress from the documentation also does not work because we do not use the default class C network and the router also is not the dhcp server. I guess I must live with using the router's IP.

          – dummzeuch
          May 21 at 8:58













          You can add easy.box record into hosts file.

          – Anton Danilov
          May 21 at 10:25





          You can add easy.box record into hosts file.

          – Anton Danilov
          May 21 at 10:25













          Yes, but that would only work on that computer.

          – dummzeuch
          May 22 at 9:13





          Yes, but that would only work on that computer.

          – dummzeuch
          May 22 at 9:13

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f968182%2fhttp-error-400-bad-request-on-name-but-ip-address-works%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

          What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

          Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos