Jump to content

Test HTTP Version

- - - - -

  • Please log in to reply
5 replies to this topic

#1
Papy

Papy

    Newbie

  • Members
  • Pip
  • 3 posts
Good day together,

i've got a java application and need to test whether the pc it's running on supports HTTP 1.1 or only 1.0. Any ideas how i can realize that with standard java libraries? I may use jsp's, servlets, portlets or whatever on the server side.

Thanks,
Papy

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
A PC doesn't support HTTP 1.1 or 1.0, a server and a client program do. What are you trying to test?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
Yes, it is up to the server program to decide what protocol it is going to use, it can be anything that is programmed in. You are not going to find too much difference between the versions though, if you are doing this for compatibility.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#4
Papy

Papy

    Newbie

  • Members
  • Pip
  • 3 posts
Hey :)

Thanks for your answers. Maybe that was the wrong term. You can have a browser that doesn't support HTTP 1.1 or you can have a Proxy that doesn't support it ....

I want to write a little tool, that checks if HTTP 1.1 can be used or not. And it should be in a java standard application

Regards,
Papy

#5
Papy

Papy

    Newbie

  • Members
  • Pip
  • 3 posts
No ideas? :)

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
HTTP/1.1: Protocol Parameters
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users