 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dale Francis Guest
|
Posted: Fri Dec 09, 2005 4:24 pm Post subject: POST to a site hangs up PC |
|
|
<to: Delphi Internet Newsgroup>
Hello,
In attempting to POST data to a website, my PC simply "hangs up" and I have
to end task. Do you know what could cause this type of behavior? Here is a
code snipet:
oXMLHTTP.open('POST', sURL, FALSE, '', '');
oXMLHTTP.setRequestHeader('Content-Type', 'multipart/form-data;
boundary=---------123456789');
oXMLHTTP.send(sPostData);
The first 2 commands execute without error. The "send", however, hangs up
the PC.
Note that I am reaching and communicating something to the site (sURL). The
receiving end (the site people) have an echo-back capture routine that shows
the data reaching the site. And they have eyeballed this data (sPostData)
and cannot see a problem... by simply eyeballing the data.
Is there something I can do to troubleshoot this? Is there something they
can do at the receiving end (the site people) to isolate the issue?
Thank you,
Dale Francis
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Dec 09, 2005 7:31 pm Post subject: Re: POST to a site hangs up PC |
|
|
"Dale Francis" <DFrancis (AT) MortgageSoftware (DOT) to> wrote
| Quote: | oXMLHTTP.open('POST', sURL, FALSE, '', '');
|
What is oXMLHTTP declared as?
| Quote: | oXMLHTTP.send(sPostData);
|
What does the content of sPostData actually look like?
Gambit
|
|
| Back to top |
|
 |
Dale Francis Guest
|
Posted: Fri Dec 09, 2005 8:04 pm Post subject: Re: POST to a site hangs up PC |
|
|
| Quote: | What does the content of sPostData actually look like?
|
It is just a string of data that includes CR/LF items. So, if I halt the
code using the debugger and rest my cursor over the sPostData variable, I
see something like the following:
'..... misc. data.....'#$D#$A'..... misc. data.....'#$D#$A'..... etc.,
etc., etc.....'
The data in this "request file" (or "request string") should be good data.
I am actually using a request file supplied to me, rather than one generated
by my code. (I saved their sample to a text file and then created and sent
string data from this file.)
Thanks. Ideas?
Dale F.
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
"Dale Francis" <DFrancis (AT) MortgageSoftware (DOT) to> wrote in message
news:4399af7e$1 (AT) newsgroups (DOT) borland.com...
oXMLHTTP.open('POST', sURL, FALSE, '', '');
What is oXMLHTTP declared as?
oXMLHTTP.send(sPostData);
What does the content of sPostData actually look like?
Gambit
|
|
|
| Back to top |
|
 |
loki Guest
|
Posted: Sat Dec 10, 2005 7:44 pm Post subject: Re: POST to a site hangs up PC |
|
|
You can try WinHttpClient or WininetHttpclient from the alcinoe pack (Demo
included to post data). you can find them on http://www.torry.ru
stephane
"Dale Francis" <DFrancis (AT) MortgageSoftware (DOT) to> wrote
| Quote: | to: Delphi Internet Newsgroup
Hello,
In attempting to POST data to a website, my PC simply "hangs up" and I
have to end task. Do you know what could cause this type of behavior?
Here is a code snipet:
oXMLHTTP.open('POST', sURL, FALSE, '', '');
oXMLHTTP.setRequestHeader('Content-Type', 'multipart/form-data;
boundary=---------123456789');
oXMLHTTP.send(sPostData);
The first 2 commands execute without error. The "send", however, hangs up
the PC.
Note that I am reaching and communicating something to the site (sURL).
The receiving end (the site people) have an echo-back capture routine that
shows the data reaching the site. And they have eyeballed this data
(sPostData) and cannot see a problem... by simply eyeballing the data.
Is there something I can do to troubleshoot this? Is there something they
can do at the receiving end (the site people) to isolate the issue?
Thank you,
Dale Francis
|
|
|
| Back to top |
|
 |
Danijel Tkalcec [RTC] Guest
|
Posted: Wed Dec 14, 2005 8:11 pm Post subject: Re: POST to a site hangs up PC |
|
|
You can also use the rtcHttpClient and rtcDataRequest components from the
RTC SDK to post data using a non-blocking method (or multi-threaded), to
avoid "freezing" your application:
http://www.deltasoft.hr/rtc
--
Danijel Tkalcec
http://www.deltasoft.hr/rtc/author.htm
RealThinClient components
-------------------------------------------
* The Easiest way to build Internet-enabled applications
- Clients, Stand-alone Servers, ISAPI extensions -
| Quote: | Write and Call Remote Functions
Download and Upload Files
Single- and Multi-Threaded mode
Firewall friendly - all over HTTP
Stress-tested for highest stability
|
http://www.deltasoft.hr/rtc
http://www.deltasoft.hr/rtc/forum
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|