Something is wrong...

This is a discussion on Something is wrong... within the Tech Board forums, part of the Community Boards category; Perhaps there is something wrong with this forum, exactly the vBulletin. I've implemented a bandwith compression proxy lately to reduce ...

  1. #1
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489

    Something is wrong...

    Perhaps there is something wrong with this forum, exactly the vBulletin.

    I've implemented a bandwith compression proxy lately to reduce my phone bill
    In the HTTP header parser component, I intentionally make all fields name to be lowercased for easy coding.

    So,
    Code:
    Content-Length
    become
    Code:
    content-length
    Somehow, I can't login to cboard while my proxy is turned on.

    Why?

    After some debugging, I found that vBulletin doesn't recognize the Cookie field!
    Code:
    cookie != Cookie
    LOL, I think I should rewrite the parser... which is written in... 3 languages (C++, Java, PHP)! *sigh*

    ...Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. The field value MAY be preceded by any amount of LWS, though a single SP is preferred....
    From HTTP/1.1: HTTP Message
    Just GET it OFF out my mind!!

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Well, standards smandards.

    I'm not really surprised by this, I guess you just have to adapt what you are doing to account for the fact that not everyone is as conscientious.

    In other words, just because you theoretically can use:
    Code:
    cONteNt-lenGtH:
    doesn't mean it is a good idea.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Hehe... Just finished writing my proxy parser. SourceForge.net Repository - [hcap] View of /trunk/src/http.c

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 07-15-2004, 03:30 PM
  2. Debugging-Looking in the wrong places
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2003, 09:50 PM
  3. Confused: What is wrong with void??
    By Machewy in forum C++ Programming
    Replies: 19
    Last Post: 04-15-2003, 12:40 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 11:01 AM
  5. Whats wrong?
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 07-14-2002, 01:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21