• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

HTTP OPTIONS sometimes does not work

 
Ranch Hand
Posts: 153
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The HTTP OPTIONS query does not seem to work on some hosts and I do not know why.

On some hosts, I can do the following:

OPTIONS /abc/abc.htm HTTP/1.1
Host: www.host.com

and as output from the server I get:

200 OK
Allow: OPTIONS, PUT, HEAD, TRACE

However, on other servers when I try this very same OPTIONS query,
either with * or /path/name.ext, the server sends me 'Connection: closed' back as attribute in the header (amongst others).
Why does one host perfectly give me its OPTIONS and another host does not?
Does this have to do with possible set up proxies on the host? I even tried HTTP/1.0.

Thanks
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The HTTP specification requires a server to support the GET and HEAD methods, but all other methods -like OPTIONS- are optional: http://tools.ietf.org/html/rfc2616#section-5.1.1. So it can indeed vary from server to server.
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow. Optional options. LIfe just doesn't get any better than that
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Life just doesn't get any better than that


You're easily pleased :-)
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic