473,382 Members | 1,665 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

WebClient?

Hello,

i searched 2days for a solution and maybe someone can help me.

Don't know which class I should use for a WebRequest where I can hold
the connection like in the InternetExplorer.

I connect to http://www.mypage.com:7070/main?name=myname&pass=mypass

with HttpWebResponse and GetResponse or with a WebClient. Both ways
deliver me the right page. I'm logged in!

Now I want to get the http://www.mypage.com:7070/topframe page but I'm
no longer logged in. How can I hold the connection? I tried with
System.Web.HttpContext, WebClient or
http://www.mypage.com:7070/topframe?...me&pass=mypass and
searched the hole Web for information...

how does the IE handel this? i hope some on got an idea or know where
i can find informations.

MM
Nov 15 '05 #1
2 1907
> I connect to http://www.mypage.com:7070/main?name=myname&pass=mypass

with HttpWebResponse and GetResponse or with a WebClient. Both ways
deliver me the right page. I'm logged in!

Now I want to get the http://www.mypage.com:7070/topframe page but
I'm no longer logged in. How can I hold the connection?


Hi, Martin.

HTTP is a "stateless" protocol. One way to implement stateful connections
is to use cookies. IE receives a cookie when you log in, look for it in the
response cookie collection, and sends it on every request following. This is
the cookie you need to add to your request when you get the other pages.

Hope that helps,
-JG
Nov 15 '05 #2
HTTP is a stateless protocoil. There is nothing you can do to "hold"
the connection, to persist a log-in you have a few options the most
popular for websites and extranet applications is to use browser
Cookies. If the application will exist on an internal network you can
use Windows Integrated Security at the web server level.


ma*********@yahoo.de (Martin Madreza) wrote in message news:<f4**************************@posting.google. com>...
Hello,

i searched 2days for a solution and maybe someone can help me.

Don't know which class I should use for a WebRequest where I can hold
the connection like in the InternetExplorer.

I connect to http://www.mypage.com:7070/main?name=myname&pass=mypass

with HttpWebResponse and GetResponse or with a WebClient. Both ways
deliver me the right page. I'm logged in!

Now I want to get the http://www.mypage.com:7070/topframe page but I'm
no longer logged in. How can I hold the connection? I tried with
System.Web.HttpContext, WebClient or
http://www.mypage.com:7070/topframe?...me&pass=mypass and
searched the hole Web for information...

how does the IE handel this? i hope some on got an idea or know where
i can find informations.

MM

Nov 15 '05 #3

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

Similar topics

2
by: xzzy | last post by:
I have .net 1.1 c# . . . . . using System.Net only lists sockets what do I need to do to be able to do: using System.Net.WebClient;
6
by: A.M-SG | last post by:
Hi, I have an aspx page at the web server that provides PDF documents for smart client applications. Here is the code in aspx page that defines content type: Response.ContentType =...
6
by: Giovanni | last post by:
Hi Guys, Really strange problem I am experiencing... I have setup a virtual directory with Read Only permissions on an ISA/IIS server (SBS 2003). In that virt. dir., I placed 1 file...
1
by: Mad Scientist Jr | last post by:
For some reason I can't get a WebClient to access an outside URL from behind our firewall. The code works when it runs outside the firewall. I turned on windows authentication in the web.config...
2
by: MichaelSchoeler | last post by:
Hi, I'm having problems with the WebClient class regarding UTF-8 encoded data. When I access a specific webservice directly I can see the data arrives in corretly formatted UTF-8. But when I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.