>I am trying to make a program to log in to Hotmail.com account and let me
>know if there are new messages waiting for me.. ;)
I would setup a spy and watch what Outlook Express does, but i dunno
if thats 100% legal
- Asbjørn
Any Comment will be very welcomed! :)
TIA,
TheSource
-==-=-=-=-=
Stuart Urquhart <empero...@hotmail.com> wrote in message
news:8k7dhn$n7...@bornews.borland.com...
> A packet sniffer
>
>
AFAIK, Outlook just "simulates" a webbrowser and gets the particular
data by sending the appropriate http requests.
Alex
--
Author of the free Chatsystem PINO! || Website: http://www.alcomp.net
Available at http://pino.cjb.net || Chat : pinochat.dhs.org:8080
Take a look at http://www.winfiles.com
TIA,
TheSource
-=-=-=-=-=-=
Alexander Mueller <al...@gmx.at> wrote in message
news:396754E7...@gmx.at...
> TheSource wrote:
> >
> > Hello EveryOne! :)
> > I am trying to make a program to log in to Hotmail.com account and let
me
> > know if there are new messages waiting for me.. ;)
> > I know many people with a lot Of Accounts in Hotmail, and it is a Real
pain
> > to check them all manually...
> > I really don't know how to do it - anyone done it already / Has an Idea?
> >
> > Any Comment will be very welcomed! :)
> >
> > TIA,
> > TheSource
> > -==-=-=-=-=
>
> AFAIK, Outlook just "simulates" a webbrowser and gets the particular
> data by sending the appropriate http requests.
>
Your Buffer looks like a GET request, but you said it requires a POST
request. So you probably have to include the data into the http header.
String Buf = "login=Name&passwd=Pass&enter=Sign+in";
TMemoryStream *DataOut = new TMemoryStream;
HttpCli1->ContentTypePost = "application/x-www-form-urlencoded";
DataOut->Write(Buf.c_str(), Buf.Length());
DataOut->Seek(0, soFromBeginning);
HttpCli1->SendStream = DataOut;
HttpCli1->RcvdStream = NULL;
HttpCli1->URL = " https://lc1.law5.hotmail.passport.com/cgi-bin/dologin ";
try
{
HttpCli1->Post();
}
except(TRUE)
{
DataOut->Free();
HttpCli1DocEnd(NULL);
// ShowMessage("Problem");
return;
}
void __fastcall TForm1::HttpCli1DocBegin(TObject *Sender)
{
HttpCli1->RcvdStream = new TFileStream("C:/Test2.txt", fmCreate);
}
__fastcall TForm1::HttpCli1DocEnd(TObject *Sender)
{
HttpCli1->RcvdStream->Free();
HttpCli1->RcvdStream = NULL;
}
Now ,Try doing what needed (the post request - look at the HTML code of
hotmail.com and see what should be put in the request).
Then, tell me if it worked, and what was wrong. ;)
That is very weird. ;)
TIA,
TheSource
-=--=-=-=-=-=
Alexander Mueller <al...@gmx.at> wrote in message
news:39675BDA...@gmx.at...
Well, I am sorry but I havent ever worked ICS yet and so I have no clue
what to do. The best way is probably really to run a sniffer which shows
you what Outlook Express sends and what it receives.
I know a good one, but cant remember the name :). I will search at
winfiles.com.
Sorry havent found it. But I believe its name is NetAnalyzer. However I
found two others.
http://digilander.iol.it/ItaAto/mpsnif.html
http://www.ufasoft.com/sniffer/
Maybe one of those will help you.
Can you understand the way it should be done, using the snifferS?
Alexander Mueller <al...@gmx.at> wrote in message
news:39676D48...@gmx.at...
I will take a look at the programs.
http://digilander.iol.it/ItaAto/mpsnif.html
This one is unfortunately a little bit buggy and I couldnt see how to
use it.
http://www.ufasoft.com/sniffer/
This one seems to do his job. Try it.
You have to login with http client (Winshoes or ICS) and use SSL protocol
https.
Look at the form's fields and do the post like is it done with web browser.
Regards,
Gregor Ibic
Alexander Mueller <al...@gmx.at> wrote in message
news:396754E7...@gmx.at...
> TheSource wrote:
> >
> > Hello EveryOne! :)
> > I am trying to make a program to log in to Hotmail.com account and let
me
> > know if there are new messages waiting for me.. ;)
> > I know many people with a lot Of Accounts in Hotmail, and it is a Real
pain
> > to check them all manually...
> > I really don't know how to do it - anyone done it already / Has an Idea?
> >
> > Any Comment will be very welcomed! :)
> >
> > TIA,
> > TheSource
> > -==-=-=-=-=
>
> AFAIK, Outlook just "simulates" a webbrowser and gets the particular
> data by sending the appropriate http requests.
>