Is there a way to automatically login to this site using webclient or HttpWebRequest (VB.NET)

Posted on 2009-05-22
Medium Priority
Last Modified: 2013-12-17
I am trying to automatically login into https://www.allianzlife.com/default.aspx Is there a way to automatically login to this site using webclient or HttpWebRequest (VB.NET)?
Question by:iamtheiam
  • 3

Author Comment

ID: 24452179
Here's the POST from ieHTTPHeaders I substitued the username and password with <<MYUSERNAME>> and <<MYPASSWORD>>

POST /Security/LogIn.aspx HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Referer: https://www.allianzlife.com/Security/LogIn.aspx
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2)
Host: www.allianzlife.com
Content-Length: 529
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: __utma=95122124.1050789322859852100.1242950361.1243006370.1243006528.9; __utmz=95122124.1242950361.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=95122124.1.10.1243006528; __utmc=95122124; ARPT=QJINLJSp225CYWK; ASP.NET_SessionId=ul5q0ryqytc0k445rqqa3hvs; IS_SSO_USER=


LVL 12

Assisted Solution

by:Nirmalan Nagenthiran
Nirmalan Nagenthiran earned 80 total points
ID: 24453003

Accepted Solution

iamtheiam earned 0 total points
ID: 24472962

Author Comment

ID: 24495805
Thanks guys

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Hi, this video explains a free download that you can incorporate into your Access databases, or use stand-alone for contact management. Contacts -- Names, Addresses, Phone Numbers, eMail Addresses, Websites, Lists, Projects, Notes, Attachments…
If you are looking for an automated tool which can generate reports for Outlook emails and other items from PST file, then you can go for Kernel PST Reporter tool. The reports which are created by this tool are helpful to analyze and understand PST …

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question