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

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)?
iamtheiamAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

iamtheiamAuthor Commented:
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=

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJMTcyODM4NTMyD2QWAgIBD2QWAgILD2QWAmYPZBYEAgEPDxYCHgdWaXNpYmxlaGRkAgIPZBYCAgIPDxYCHwBoZBYCZg8PFgIeBFRleHQFDzAgaXRlbXMgaW4gY2FydGRkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBShQYWdldGVtcGxhdGUxOnJlbWVtYmVyTXlVc2VybmFtZUNoZWNrQm94kQyYgcd31J9j4iKaQsNdPGy%2B6Ps%3D&Pagetemplate1%3AusernameTextBox=<<MYUSERNAME>>&Pagetemplate1%3ApasswordTextBox=<<MYPASSWORD>>&Pagetemplate1%3AlogInButton=LOGIN&__EVENTVALIDATION=%2FwEWBQKQvuzBDQLB56XXBQKz6sybDAKOqfmFDwKPvdfKDg1RVV7Forax2mpRwi%2BruTXOpoWn

0
Nirmalan NagenthiranCommented:
0
iamtheiamAuthor Commented:
Anyone?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
iamtheiamAuthor Commented:
Thanks guys
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.