473,507 Members | 11,372 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send cookie with request

I need to send a cookie with a web service call.
I create a cookie and a container, associate it with the web service call.

But when I check with the network monitor, there is no cookie in the http
stream attached.
What could be the problem?

PS: I don't need session

Thanks
Eric

Dim si As New CLServiceIdentification
'Add Cookie
si.CookieContainer = pMPIData.GetSSOCookieContainer()

' Call WS
_wsResult = si.identifyClient(.....)

Nov 23 '05 #1
2 3310
Hello Eric,

Have you check the Count property of CookieContainer? Maybe there is no
cookie in it yet. Also I suggest you may test sample in this article:

http://support.microsoft.com/default...;EN-US;Q820528

to see if you can get the cookie in the http stream. (Surely we don't need
session, but for a simple test, session can help us create a cookie)

Luke
Nov 23 '05 #2
Thanks for answering.

I think it has something to do with the domain property in the cookie.

If the domain isn't the same like the destination url, the cookie isn't
sent.

PS: I try to resend a cookie which i received from the server but nit in the
same session.
For that I reconstruct the cookie from scratch.

Eric
"[MSFT]" <lu******@online.microsoft.com> wrote in message
news:ok*************@TK2MSFTNGXA01.phx.gbl...
Hello Eric,

Have you check the Count property of CookieContainer? Maybe there is no
cookie in it yet. Also I suggest you may test sample in this article:

http://support.microsoft.com/default...;EN-US;Q820528

to see if you can get the cookie in the http stream. (Surely we don't need
session, but for a simple test, session can help us create a cookie)

Luke

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4309
by: N.K | last post by:
Hi , Python's existing cookie module doesnt supports new cookie headers SetCookie2 , How to submit a patch for that ? I tried emailing person who owns that module.But no response. Thanks,...
0
2057
by: collie | last post by:
Hi, I have an asp page where i created cookies-for admin and for user. The aspx page reads these cookies. Everything seems to work fine but now i have to create a new cookie if cookie has...
3
2027
by: Ben | last post by:
I'm having problems with cookies from asp.net to asp back to asp.net. It seems like I can set a cookie in asp.net fine, and alter it at will, as soon as asp touches it, asp.net won't have...
2
4799
by: Keith Patrick | last post by:
I'm trying to programmatically post data to another page within my ASP.Net app. Not POSTing is not an option (I can't store this data in my session, context, hidden fields, or anything else...I've...
5
5240
by: Miljana | last post by:
Hi, I have one problem with cookies in ASP.NET application. It seems that I can not retreive cookie from Request.Cookies collection. I put cookie in Response.Cookies collection, and after page...
0
291
by: Eric | last post by:
I need to send a cookie with a web service call. I create a cookie and a container, associate it with the web service call. But when I check with the network monitor, there is no cookie in the...
7
19064
by: itay_k | last post by:
Hi, I dont understand why this is so complicated, just to add one line of cookie header on the GET request. This is my unworking code: import time import Cookie import cookielib, urllib2
1
5865
by: Lu Wei | last post by:
Hello, I'm writing a script to send posts to a web forum. I find that MSXML2.XMLHTTP object could communicate with web server but I can't make it send cookie which is needed for post...
4
1771
by: André | last post by:
Hi, I try to create and render a graphic among other objects like e.g. tables, labels, buttons. The tables are not a problem, neither the graphic. My problem is that i can't render both...
3
8156
by: Dave | last post by:
string m_request = some_web_page; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(m_request ); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Which works...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1537
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.