?
Solved

Get WebPage that need a cookie.

Posted on 2003-11-10
5
Medium Priority
?
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
GloomyFriar earned 252 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 248 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

765 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