BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

POST to a site hangs up PC

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Dale Francis
Guest





PostPosted: Fri Dec 09, 2005 4:24 pm    Post subject: POST to a site hangs up PC Reply with 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
Remy Lebeau (TeamB)
Guest





PostPosted: Fri Dec 09, 2005 7:31 pm    Post subject: Re: POST to a site hangs up PC Reply with quote




"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





PostPosted: Fri Dec 09, 2005 8:04 pm    Post subject: Re: POST to a site hangs up PC Reply with quote



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





PostPosted: Sat Dec 10, 2005 7:44 pm    Post subject: Re: POST to a site hangs up PC Reply with quote

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





PostPosted: Wed Dec 14, 2005 8:11 pm    Post subject: Re: POST to a site hangs up PC Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.