Discussion:
Wininet HttpSendRequest returns 12029
(too old to reply)
j***@hotmail.com
2006-04-11 14:17:10 UTC
Permalink
Hi, I have a short Delphi application which uses the Wininet
HttpSendRequest API to GET a page from a website. If I run my
application from inside the Delphi IDE the call to HTTPSendRequest
always returns error code 12029 (ERROR_INTERNET_CANNOT_CONNECT),
however, if I run the compiled executable of the application the GET
request always succeeds.

At first I presumed that this must be a firewall problem but I have
tried disabling the firewall software and the problem still persists.

Can anyone tell me what would cause HttpSendRequest to return 12029
under these conditions?

Many thanks in advance.
j***@hotmail.com
2006-04-11 14:29:46 UTC
Permalink
Post by j***@hotmail.com
Hi, I have a short Delphi application which uses the Wininet
HttpSendRequest API to GET a page from a website. If I run my
application from inside the Delphi IDE the call to HTTPSendRequest
always returns error code 12029 (ERROR_INTERNET_CANNOT_CONNECT),
however, if I run the compiled executable of the application the GET
request always succeeds.
At first I presumed that this must be a firewall problem but I have
tried disabling the firewall software and the problem still persists.
Can anyone tell me what would cause HttpSendRequest to return 12029
under these conditions?
Many thanks in advance.
Sorry, I should have added the following.

I have tried giving both the source code and the compiled executable to
another person (with delphi installed) and they are unable to
re-produce the error. (the program executed fine from both within the
Delphi IDE and from the stand alone executable.)

I have also tried re-installing Delphi, but the problem persists.
Scherbina Vladimir
2006-04-11 14:34:04 UTC
Permalink
Most likely the problem is in firewall or AV software, because Agnitium
Outpost sometimes blocks my VS IDE - it reports that devenv.exe has modified
memory in myapp.exe and blocks access to the network for both processes. Try
to play with firewalls settings once more.
--
Vladimir
manage content: http://www.infostoria.com/
blog: http://spaces.msn.com/vladimir-scherbina/
Loading...