On Tue, 29 Jan 2002 22:45:19 -0500, "Ron Davis"
<[EMAIL PROTECTED]> wrote:
>
>Well.... I have the code all ready (thanks to VERY helpful members of this
>list!), but when I try to actually run it, it acts like its processing (it
>slows down like its chewing thru the process), but I never get a response
>back...
>
>Now.. heres the twist... the server thats listening on a particular port
>will ONLY accept requests from a certain IP address (which is set to the
>web server hosting these pages)... but.. the web server is sitting behind
>a firewall, and when you call it up in a browser you have to use an
>entirely different IP address... So.. my question is this... since its
>bouncing from a different IP address, could that be why I'm not getting
>any responses? Or is the firewall actually translating from the "broadcast
>ed" as the IP address, to the one that the other server will accept
>requests from? Is there something else conflicting with this?
I'm.. half asleep at the moment, but if there are proxy's and
firewall's involved you have to change your code to accomodate them.
Browsers and the like take care of this invisibly, but with tcpclient
you'll have to do it manually.
I assume you're using the HTTP protocol?
Basically, you open an ip connection to the proxy, then do all your
GET, HEAD, POST operations with the full URL of the site you wish to
talk to. Simple as that.
That is, instead of:
<cfset obj.SendRN("GET /INDEX.HTML HTTP/1.0")>
<cfset obj.SendRN("")>
you'd:
<cfset obj.SendRN("GET http://www.houseoffusion.com/INDEX.HTML
HTTP/1.0")>
<cfset obj.SendRN("")>
Or at least that's how I remember it worked.
>:::::::::::::::CODE EXAMPLE:::::::::::::::
Oh. Just noticed your code. No wonder it just sits there. :) You
didn't send any HTTP commands to telling what the data you were
sending was. It should just sit there in that case, til it times out.
This a SOAP-friendly server I take it? Is that what you're trying to
do? Use SOAP I mean?
--min
______________________________________________________________________
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