471,327 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,327 software developers and data experts.

Parsing Key Value Pairs

What is the best way to parse keys and their values from a http
repsonse (byte array?) I'd like to keep it as generic as possible as I
have many repsonses to parse.

Any thoughts would be appreciated.

Greg.

Dec 1 '05 #1
3 2400
Need more background information about your app.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Greg" <gr*************@yahoo.co.uk> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
What is the best way to parse keys and their values from a http
repsonse (byte array?) I'd like to keep it as generic as possible as I
have many repsonses to parse.

Any thoughts would be appreciated.

Greg.

Dec 1 '05 #2
Thanks Kevin,

dont worry, I've just written a class to do it. I had to do a very
through job, since it is going to be used in several apps. The reason
why I asked was I was wondering if Microsoft had supplied a class that
did it for us.

What I wanted was to be able to separate values for their corresponding
key from a string e.g.

"sidjsidjsidjisdjsiasdjakjaksj?key1=value1&key2=va lue2&key3=value3"

Dec 1 '05 #3
Ah. About the only way I know to do this is with the good ol' fashioned
String.Split.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Greg" <gr*************@yahoo.co.uk> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Thanks Kevin,

dont worry, I've just written a class to do it. I had to do a very
through job, since it is going to be used in several apps. The reason
why I asked was I was wondering if Microsoft had supplied a class that
did it for us.

What I wanted was to be able to separate values for their corresponding
key from a string e.g.

"sidjsidjsidjisdjsiasdjakjaksj?key1=value1&key2=va lue2&key3=value3"

Dec 1 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by YoBro | last post: by
2 posts views Thread by Julie | last post: by
9 posts views Thread by Ravi Singh (UCSD) | last post: by
4 posts views Thread by Jozef Jarosciak | last post: by
17 posts views Thread by Mark | last post: by
7 posts views Thread by Eric Wertman | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.