Results 1 to 4 of 4
  1. #1
    Shiv is offline Member
    Join Date
    Apr 2009
    Posts
    15
    Rep Power
    0

    Smile About HTTP requeset

    HI
    I want to know that Is it fair to create request headers according to our choice and then connecting to any website. Does the web server(web site) responds according to request header send to it ?

    For example suppose i want to connect http based url abc.com again, i was visited to that site previously, and i analyzed its response header at that time, during analysis of response header i realized that, its content-language priority is first for UK english, and then for US english. But i want to tell the server that my first priority is US english, through request header. then is it possible after setting request header parameters and then making a connection to that site, the next time when server responds it will show content-language priority first to US english.

    In short i want to know that is it possible for web servers(any web sites) to behave accordingly request headers parameters that client will send to them....? or they will behave as they do, mean no effect of request headers on them ?

    Can any one have fair idea/suggestion regarding that, if then send me plz...!

  2. #2
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    It is common courtesy for web servers to respond to specified request headers. However, it is the choice of the person who manages the web server what to implement. Some will give you the content-language you ask for, some won't be able to and some will ignore you. The only way to know is to try it and see.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    Requests are exactly that. They will be honored if the server supports honoring them otherwise they won't. By the way, when you first connected, the server told you what its capabilities were.

  4. #4
    rexicon is offline Member
    Join Date
    Apr 2009
    Posts
    10
    Rep Power
    0

Similar Threads

  1. Replies: 7
    Last Post: 11-11-2009, 09:29 PM
  2. Http change to HTTP\SSL
    By ballyv24 in forum Advanced Java
    Replies: 0
    Last Post: 05-14-2008, 12:32 PM
  3. Http Sessions
    By manasa in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 11:51 AM
  4. i need help in http process
    By sureshjava in forum New To Java
    Replies: 0
    Last Post: 01-29-2008, 05:56 AM
  5. use ftp instead of http
    By gabriel in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2007, 07:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •