1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2010
    Rep Power

    Parse HTTP Header

    Hi there!
    I need to extract information about Location from HTTP header, example:

    SA PSD\"\r\nLocation: /MyPage.aspx?db=global\\gad6.nsf&c=DCE798279HK10B\r\nSet-Cookie: ASP.NET

    the part which interest me is:


    Could anybody help me please?
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Pennsylvania, USA
    Rep Power
    in general:

    s/Location: ([^\\r]+)/
    We'll need to know what language you're using if you want more help than that. Note also you may have to change the number of slashes before the R.

    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo