|
-
Jan 6th, 2005, 08:06 PM
#1
Thread Starter
Member
cookies and winsock
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?
-
Jan 6th, 2005, 08:07 PM
#2
Addicted Member
Re: cookies and winsock
I would guess in strings. Possibly over binary? I don't know a whole lot about the subject myself.
Sherminator ~ I'll be back.
-
Jan 6th, 2005, 08:11 PM
#3
Thread Starter
Member
Re: cookies and winsock
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?
-
Jan 6th, 2005, 08:18 PM
#4
Addicted Member
Re: cookies and winsock
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.
Sherminator ~ I'll be back.
-
Jan 6th, 2005, 09:53 PM
#5
Frenzied Member
Re: cookies and winsock
 Originally Posted by DiB
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 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!
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 "/".
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|