Solved

Get WebPage that need a cookie.

Posted on 2003-11-10
5
219 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

17 Experts available now in Live!

Get 1:1 Help Now