lets say I have:
VB Code:
Cookie name: sampler Value: 1105058236 Server: netscape.com Expire: 2005-12-28 Cookie name: CoBrandedFor Value: AIM Server: netscape.com Expire: 2005-12-28
How would i send that in winsock?
Printable View
lets say I have:
VB Code:
Cookie name: sampler Value: 1105058236 Server: netscape.com Expire: 2005-12-28 Cookie name: CoBrandedFor Value: AIM Server: netscape.com Expire: 2005-12-28
How would i send that in winsock?
I would guess in strings. Possibly over binary? I don't know a whole lot about the subject myself.
Like do I have to send the data like "Cookie: cookie data here" ? If so how would i get the name, value, server, and expiration date in there?
Am I to assume that you are sending it from a server to someone's pc?
A great link that I was shown today is: www.winsockvb.com
It has all kinds of examples, but you have to search around a little.
I assume you have little winsock experience? If so i'd suggest learning a bit about the basics of client/server applications and the winsock control.... a good url was posted previously winsockvb.com!Quote:
Originally Posted by DiB
heres a little rough sample of what you might want to do though.
VB Code:
dim strData as string strData = "sampler" Client.senddata "Cookie: " & strData & "/" DoEvents strData = "1105058236" Client.senddata "Value: " & strData & "/" DoEvents
You would send the "/" as a delimiter so that you can seperate the data received once on the server side.. you'd use split function to seperate into seperate strings based on "/".