> > I pretty much assume this is a big fat NO because right > > at the beginning with the Affiliate Login page, CF just > > pulls the source code (right?) and doesn't actually open > > a session giving it a chance to login (or am I mistaken??). > > You can make it open a session. In order to maintain a > session you have to send an identifier with each request. > Either as a cookie, as a formfield or as a URL variable. > Find out which one Amazon uses and make sure that once > you get it in a response you send it again with every > request. > > What will be your big fat no with CFHTTP on sites with > decent security is that they check the HTTP referer. I > am not aware of any possibility to set an HTTP referer > with CFHTTP. You could just add a CFHTTPPARAM with the > name referer and the type cgi but it will end up sending > double referers to the other site. Of course you could > use some TCP/IP custom tag, but that would get really > cumbersome.
Actually, the biggest problem with CFHTTP for this stuff that I've encountered isn't the issue with the HTTP Referer header (and to my knowledge, you're absolutely right - you can't override it with CFHTTPPARAM successfully), but rather that to send CGI variables, including cookies, you have to use METHOD="POST", and a lot of servers simply won't accept that method for some requests. In short, CFHTTP just isn't well suited to anything beyond grabbing a simple page. As for using custom tags or external components, it's not as cumbersome as it might seem. I've used a couple, and they work very well (and simply) as replacements for HTTP functionality. If you're going to use the freeware TCPClient COM object, that can be a bit annoying since you have to construct valid HTTP GET and POST strings (and have to properly encode your data), it's still easier than trying to get CFHTTP to do what you want, and TCPClient is as flexible as you could want, since you simply build the strings you want to send. If you want a more structured approach, the commercial Mabry HTTP/X object works well, although admittedly it's a bit more complex than CFHTTP (but that's a good thing, since it lets you do what you want). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb 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

