Solved

Get WebPage that need a cookie.

Posted on 2003-11-10
5
221 Views
Last Modified: 2010-04-05
How do I retrieve a page (with delphi) that needs a cookie? I need this to make programs that automatically get new email status.

thanks in advance.
0
Comment
Question by:dyancer
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
GloomyFriar earned 63 total points
ID: 9715698
You need to send your cookies in the html header:

"Set-Cookie: B=5; A=4;\r\n"
0
 
LVL 6

Expert Comment

by:GloomyFriar
ID: 9715806
Ooops. Sorry. "Set-cookie" you can receive from server.

To set cookies in request you need to send to server something like that:

GET /100.xhtml?www.alonewolfsoft.narod.ru/SOFT/gchn.rar HTTP/1.1
Host: narod.yandex.ru
Accept: */*
Referer: http://download.ru/russian/sp/13413.htm
Cookie: yandexuid=1803220281066827206
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
0
 
LVL 26

Assisted Solution

by:EddieShipman
EddieShipman earned 62 total points
ID: 9737241
Your cookie, being as it is fromn an email server, may not always be the same. What you should do
is login using idHTTP and catch the cookie with a idCookieManager and then send it along with
your response. I don't have time to build an example for you but that is how I would do it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now