You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Matt Richards <ma...@mattstone.net> on 2006/04/14 16:34:33 UTC

[users@httpd] proxy only asp files

hello :)

been playing around LOTS with different setups and everything and i had 
a sudden brainwave the other day and it worked :D ... kinda !

what i have currently got setup is this ...

[root@CTR002 root]# cat /usr/local/httpd/cgi-bin/asp-proxy
#!/bin/sh
# disable filename globbing
set -f
echo "Content-type: text/html; charset=iso-8859-1"
echo
/usr/local/bin/lynx --source http://172.19.13.16$PATH_INFO?$QUERY_STRING

and in the apache config file i have this ..

Action application/x-httpd-asp /cgi-bin/asp-proxy
Addhandler application/x-httpd-asp .asp

This all works fine with GET post requests but dosn't work with POST 
requests.
another thing that dosn't work is cookies but i'm not tooo worried about 
them for now

i know this can all be done with perl because CGIProxy does it just just 
not in this way.

what i was wondering is does anybody know of a script that i can plonk 
in place of asp-proxy that will work,
i would make one myself but i'm not to gr8 on perl atm and it will take 
lots and lots of messing about and head banging n stuff to try n get it 
working.

another question i got is if i cant find a script i could just use that 
one for now but i will still need the ablity parse method="POST" which i 
think is sent to stdin
so does anybody know how i can make lynx send a data string as a 
method="POST" request ...

i dont surpose
$1 | /usr/local/bin/lynx --source ... will work will it, lol

If anybody got any bright ideas please let me know,

Cheer,

Matty.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org