Can I do my own HTTP header attribute?

Posted by wokena on Stack Overflow See other posts from Stack Overflow or by wokena
Published on 2009-05-17T17:55:40Z Indexed on 2010/05/10 6:34 UTC
Read the original article Hit count: 346

Filed under:
|
|

Hi, can I make my own headers in HTTP request?

e.g. This is normal HTTP request

GET / HTTP/1.1
Host: google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT x.x; xx; rv:x.x.x.x) xxx        Firefox/3.0.10 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: xx,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: windows-1250,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

and this is header with my "attribute"

GET / HTTP/1.1
Host: google.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT x.x; xx; rv:x.x.x.x) xxx        Firefox/3.0.10 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: xx,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: windows-1250,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Name: John

and I will have "attribute" in server response. I'll use "attrubutes" in HTTP headers instead of sessions attributes...

BTW.Sorry for my english... ;)

© Stack Overflow or respective owner

Related posts about http

Related posts about headers