467,120 Members | 1,217 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,120 developers. It's quick & easy.

extract string from cookie value

203.114.10.66 - - [01/Aug/2008:05:41:21 +0300] "GET /stat.gif?stat=v&c=F-Secure&v=1.1%20Build%2014231&s=av%7BNorton%20360%2 0%28Symantec%20Corporation%29+69%3B%7Dsw%7BNorton% 20360%20%28Symantec%20Corporation%29+69%3B%7Dfw%7B Norton%20360%20%28Symantec%20Corporation%29+5%3B%7 Dv%7BMicrosoft%20Windows%20XP+insecure%3BMicrosoft %20Windows%20XP%20Professional+f%3B26027%3B26447%3 B26003%3B22452%3B%7D&r=0.9496 HTTP/1.1" 200 43 "http://dfstage1.f-secure.com/fshc/1.1/release/devbw/1.1.14231/card.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"


from the above cookie value, may i know how am i able to extract certain string from the log above using python. i thought of using regular expression to extract the value.

the next thought is defining the value in XML like for %av will be
<antivirus> </antivirus>

please teach me or guide me.
Aug 9 '08 #1
  • viewed: 1355
Share:

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Tim Smith | last post: by
7 posts views Thread by William Payne | last post: by
9 posts views Thread by Sharon | last post: by
17 posts views Thread by James Johnson | last post: by
5 posts views Thread by Milos Prudek | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.