473,505 Members | 13,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

httpWebRequest with Cookie and Server Response

4 New Member
Hi All,

I would be more Helpful if someone can help me in this.

I want to get some data from another web Page. Like Temperature updated in that page.

I can able to log in the Wep page throught HttpWebRequest and collect the Cookies. Navigate to different Pages in that domain. But unable to navigate to a particular page progaramaticaly (domine/bin/comman/Shadule.Pl) even with the cookies. I can access this page in the (i.e) after loging into the Website.

Can anyone help me to find what the server request other than the Cookies?

How to keep the session alive and pass the redirect the Uri after successfully log into the Page programatically in VB.Net?

Thanks in Advance,
Aum4us
Oct 30 '07 #1
6 1867
kenobewan
4,871 Recognized Expert Specialist
Maybe you would be better served by a web service or rss feed?
Oct 30 '07 #2
Aum4us
4 New Member
Maybe you would be better served by a web service or rss feed?
Thanks

I have to collect the session ID and Proxy Authentication id from the cookie container and send with the redirect page in GET method.
Oct 31 '07 #3
Plater
7,872 Recognized Expert Expert
Hi All,

I would be more Helpful if someone can help me in this.

I want to get some data from another web Page. Like Temperature updated in that page.

I can able to log in the Wep page throught HttpWebRequest and collect the Cookies. Navigate to different Pages in that domain. But unable to navigate to a particular page progaramaticaly (domine/bin/comman/Shadule.Pl) even with the cookies. I can access this page in the (i.e) after loging into the Website.

Can anyone help me to find what the server request other than the Cookies?

How to keep the session alive and pass the redirect the Uri after successfully log into the Page programatically in VB.Net?

Thanks in Advance,
Aum4us

Are you also getting the "session cookie" from this website? Sometimes it will come as a value in the Headers[] and not as a Cookies[]
Some places also require the referer header to be sent from a valid page on their own website
Oct 31 '07 #4
shahdeveloper1
1 New Member
I HAVE THE SAME PROBLEM .i am using ajax with asp.net as backend page.
every thing is going on well when there is session live but when want the username etc from the cookies it then give me that the person is not login means cookies from get is not working.plz required help
thanks
Nov 1 '07 #5
Aum4us
4 New Member
Hi,

Thanks, when i check with server response it shows the below errors.
Expires: Mon, 05 Nov 2007 11:42:07 GMT
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
X-Cache: MISS from LI-SQU-1
X-Cache-Lookup: NONE from LI-SQU-1:3128
What makes cause for this problem.
Nov 6 '07 #6
Plater
7,872 Recognized Expert Expert
I would say your proxy server is blocking the cookies.
"Squid proxy-caching web server" something is wrong with that thing that the cache is erroring?
Nov 6 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3191
by: Satinderpal Singh | last post by:
Hi everyone, We are using HttpWebRequest to create a request to a URI, which requires us to login first. In order to process all the transactions, first we have to login and get the cookie value...
0
6062
by: Sivashankaran Vaidhyalingam | last post by:
Hi folks, I have an aspx application App A hosted in a server which is inside the intranet . I need to serve pages from this application _through_ another application App B which acts as a proxy...
9
3578
by: buran | last post by:
Dear ASP.NET Programmers, How can I post data to an ASP.NET login page and pass authentication? The login page uses forms authentication, users must supply usernames and password and have to...
1
2780
by: Satinderpal Singh | last post by:
Hi everyone, We are using HttpWebRequest to create a request to a URI, which requires us to login first. In order to process all the transactions, first we have to login and get the cookie value...
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...
11
15841
by: Keith Patrick | last post by:
Could someone explain to me the relationship between these two classes? I am ripping my hair out trying to divert an HttpRequest to a new location via an HttpWebRequest, but I cannot get my...
6
1953
by: Oliver | last post by:
I have a very wired problem requesting one specific url from within my application. I have struggeled with this for 5 hours now, and searched google withour any luck, so i hope that someone are...
0
1498
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the...
0
2025
by: Alex Papadimoulis | last post by:
Hey Group, I'm in the process of converting an ASP-based site to an ASP.NET site and built a control that wraps around an ASP page. The control simply does a GET to the same server to render the...
0
1535
by: boxboy | last post by:
Hi, I'm writing a console application and am having a problem with HttpWebRequest when posting data to a webserver. A "System.Net.WebException: The server committed a protocol violation" is always...
0
7366
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...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7471
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
5610
agi2029
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,...
1
5026
isladogs
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...
0
4698
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1526
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
754
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
406
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.