I know you have already done a lot of work with TCPClient, but why use it to
do http? I actually built a little http get script with tcpclient a while
back, then rewrote it when I discovered it didn't have to be than hard...
There are quite a few free http COM objects that are specifically built for
http. There are some free ones floating around too.

http://www.coalesys.com/products/httpclient/features/
http://www.winscripter.com/wsh/tools/wsInetTools.asp

The docs for the Coalesys component probably will answer your original
question even if you continue to use TCPClient.
http://www.coalesys.com/support/kb/document.asp?id=50

One more thing...if the web site you are planning hitting with your program
is using host headers, you are going to need to do a http 1.1 request.
jon

----- Original Message -----
From: "Greg Saunders" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2001 1:39 PM
Subject: Re: tcpclient and cfhttp -- how to post data?


> OK, I'm learning about some of the pain referenced below ;-)
>
> I'm trying to perform an HTTP post operation, but I can't figure out how
to
> do it with TCPClient.  I know I need to change the method from GET to
POST:
>
>          <cfset obj.SendRN("POST /myTest.cfm HTTP/1.0")>
>
> But I don't know how to set the form data.  Also, is it possible to use
> multiple encoding types, like:
>
>            enctype="text/plain"
>            enctype="multipart/form-data"
>            enctype="application/x-www-form-urlencoded"
>
> Thanks in advance,
>
> greg
>
>
>
>
> At 12:32 PM 12/13/2001 -0500, Lewis Sellers wrote:
> >On Thu, 13 Dec 2001 15:12:26 -0000, Craig Dudley <[EMAIL PROTECTED]>
> >wrote:
> >
> > >I've been using a month or so now on a test site, albeit under quite
heavy
> > >load, I have't had a single error. And to say that it's faster than
CFHTTP
> > >would be a mild understatement.
> >
> >Thanks. That's definately the major aims.
> >
> >To be fair to cfhttp of course, it does (sort of) take care of all
> >those redirections and so forth automatically. Those can be a bit of a
> >pain (if think you know it's coming you can also send a HEAD first ...
> >but that's a long story.)
> >
> >Hopefully if the time presents itself there'll be a new red/3.x
> >version out soon that does SSL (ie HTTPS), S/MIME (ie, signed and
> >encrypted email)... and a few other useful things. /-)
> >
> >--min
> >

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to