This is a multi-part message in MIME format.
------=_NextPart_000_008A_01BCF420.FE575B80
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I need to run a perl script going through Netscape-Enterprise/3.0C =
server. A cookie is required to get access to the script. The script =
needs to be run from a non-UI environment (i.e. talk to the server =
through a socket at port 80). I am not sure how to pass the cookie as =
part of my request. The cookie that I have is a valid one (I think).=20
Here is a sample of what I've tried (messages returned from the server =
are underlined):
telnet machine_name 80
Trying 12.3.45.678
Connected to machine_name.
Escape character is '^]'
Cookie: name=3Dvalue
POST /script_name HTTP/1.0
Content-type: application/x-www-form-urlencoded
Content-length: 42
fld1=3Dval1
HTTP/1.1 400 Bad Request
Server: Netscape-Enterprise/3.0C
=20
Your browser sent a message this server could not understand.Connection =
closed by foreign host.
Any help would be greatly appreciated.
------=_NextPart_000_008A_01BCF420.FE575B80
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY>
<DIV>I need to run a perl script going through Netscape-Enterprise/3.0C=20
server. A cookie is required to get access to the script. =
The script=20
needs to be run from a non-UI environment (i.e. talk to the server =
through a=20
socket at port 80). I am not sure how to pass the cookie as part =
of my=20
request. The cookie that I have is a valid one (I think). </DIV>
<DIV> </DIV>
<DIV>Here is a sample of what I've tried (messages returned from the =
server are=20
underlined):</DIV>
<DIV> </DIV>
<DIV><FONT size=3D2>telnet <EM>machine_name </EM>80</FONT></DIV>
<DIV><EM><FONT size=3D2></EM>Trying 12.3.45.678</FONT> </DIV>
<DIV><FONT size=3D2>Connected to machine_name.</FONT> </DIV>
<DIV><FONT size=3D2>Escape character is '^]'</FONT> </DIV>
<DIV><EM><FONT size=3D2></EM></FONT> </DIV>
<DIV><FONT size=3D2>Cookie: name=3Dvalue</FONT></DIV>
<DIV><FONT size=3D2>POST /script_name HTTP/1.0<BR>Content-type:=20
application/x-www-form-urlencoded<BR>Content-length: =
42</FONT> </DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>fld1=3Dval1</FONT></DIV>
<DIV><EM><FONT size=3D2></EM></FONT> </DIV>
<DIV><FONT size=3D2><STRONG><U>HTTP/1.1 400 Bad Request<BR>Server:=20
Netscape-Enterprise/3.0C<BR> <BR>Your browser sent a message this server =
could=20
not understand.Connection closed by foreign=20
host.</U></STRONG><BR></FONT> </DIV>
<DIV><EM></EM> </DIV>
<DIV>Any help would be greatly appreciated.</DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_008A_01BCF420.FE575B80--