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 CLServiceIdenti fication
'Add Cookie
si.CookieContai ner = pMPIData.GetSSO CookieContainer ()
' Call WS
_wsResult = si.identifyClie nt(.....) 2 3330
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
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******@onlin e.microsoft.com > wrote in message
news:ok******** *****@TK2MSFTNG XA01.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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,
Nirmal
|
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 expired or if cookie is
null. Also, i am having problems with the expire because if the
username belongs to the admin for example and then i want to...
|
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 anything to do with it. Can
someone please help!
The code below, going from aspx to aspx, works great the cookie as expected
goes from qwerty to zxcvb...
|
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 exhausted all my other
options, so I have to get this scenario working). Basically, if I POST the
data normally, it works fine, except the target...
|
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 post back, when
I try to retreive it from Request.Cookies collection, it appears that it does
not exists.
This problem does not occur on several...
| |
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 http
stream attached.
What could be the problem?
Thanks
Eric
|
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
|
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 authentication. I have searched
google and read some articles including:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q290899...
|
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 together. With the code below, i only
see the graphic, nothing else (no table, label, button).
How can i see the table and below the table, the graphic?
|
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 fine, but I need to set and send a cookie with the WebRequest.
How do I do that?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |