> Subject: Issuing Fetch Request from a Web Server
> 
> Dear Smart Guys and Gals,
> 
> We want to send data from a server-side script to another machine.
> The Web server is running IIS on Windows 2000 Server, and we are using ASP.
>
> We coud not find a free COM component that creates a TCP connection,
> so we decided to use HTTP to send data from the Web-server
> to another machine.
>
The optimum solution is going to depend on the size of the request
and how long it takes for the remote machine to act on it.

A fairly good solution might be XML-RPC for which information can be found at
http://xmlrpc.org
 
> We first thought that Redirect may work, but we could not
> make it work among different machines.
>
Can you output the raw headers from your server?
if not you might try

<META http-equiv="refresh" content="1;url=http://your.remote.server.net;";> 

> Is there any good way to solve our problem.
>
python can be used as the procedural language for ASP, can it not?

in which case the solution would be

#!/usr/bin/env python
from socket import *
s = socket(AF_INET,SOCK_STREAM)
s.connect("your.remote.server.net",8080) #host and port
s.send(somedata)
answer = s.recv(NUM_BYTES) #NUM_BYTES being the maximum size
s.close()



 
> Thank you in advance.
> 
> Toshi
> 


http://www.efn.org/~laprice        ( Community, Cooperation, Consensus
http://www.opn.org                 ( Openness to serendipity, make mistakes
http://www.efn.org/~laprice/poems  ( but learn from them.(carpe fructus ludi)
http://allie.office.efn.org/phpwiki/index.php?OregonPublicNetworking

Reply via email to