Hello:
First, please try to mention the component you need help with in the
Subject line in your message; this will attract those who are capable
and willing to answer posts regarding that component.
Now, with that out of the way, here are a few considerations.
"Internal Server Error" means just that, the server failed to execute
-- on its end -- whatever dynamic content it was requested to. This
usually signifies a script error of some sort. If the script error
only occurs when you POST from HttpCli, but it works when you post from
a commercial browser, then it could be a problem in the way it is being
posted -- but still it means that the server-side script is intolerant
to posting innaccuracies (maybe its expecting specific values on
variables and it explodes when it doesn't get them), so it should be
corrected. Wilfried's suggestion should help to find out what is
actually being sent to the server in the POST request.
I do not use HttpCli very much (ever?) so I am not familiar with its
limitations (if any), but I know that it works pretty well. The only
unfamiliar thing I see from your html POST code is a very long
(apparently MIME-encoded binary stream) string in the value of
__VIEWSTATE. Two things come to mind:
1. The value is too long for HttpCli to handle in a POST
2. The value is incorrectly being processed by the server.
First thing is to check if POSTing the page from a commercial browser
will work. Second, does anybody know if there are any limitations in
the buffer size for POST variables in HttpCli?
dZ.
On Jun 28, 2005, at 14:20, Wilfried Mestdagh wrote:
Hello Fabian,
The most easy way is to compare your POST data with the POST data that
you do with a browser. You can do that with a packet sniffer. You can
also use SocketSpy (user made page) to view the data.
---
Rgds, Wilfried
http://www.mestdagh.biz
Tuesday, June 28, 2005, 18:26, Fabian Makowiecki wrote:
I posted data with httpCli and received Internal Server Error.
This is the page I'm ussing and recieved correctly information, but
when I
send the post with the variables os page and receive the error.
<HTML>
<HEAD>
</HEAD>
<body background="Images/fondo3.gif" ;">
<form name="Consulta" method="post" action="
http://www.anses.gov.ar/servicios/IGTPC/Consulta.aspx" id="Consulta">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE"
value="dDwxODY0Nzg1OTExO3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDM+O2k8ND47aTw2Pjt
pPDg+O2k8MTA+Oz47bDx0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Pjs7Pjt0PDtsP
Gk8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Target, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["Consulta"];
}
else {
theform = document.Consulta;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
for (i=0;i < theform.elements.length;i++)
{
alert (theform.elements[i].name + " \n \n"
+theform.elements[i].value);
}
theform.submit();
}
// -->>
</script>
<TABLE id="tblCabecera" cellSpacing="0" cellPadding="0" width="772"
align="center" bgColor="#ffffff"
background="Images/Fondo6.jpg" border="0" valign="bottom">
<TR>
<TD style="HEIGHT: 18px" colSpan="2" height="19">
<TABLE id="Table1" cellspacing="0" cellpadding="0" width="771"
border="0"
style="DISPLAY: inline; FONT-WEIGHT: bold; FONT-SIZE: 8pt;
BACKGROUND-IMAGE:
none; TEXT-TRANSFORM: uppercase; WIDTH: 176px; COLOR: #ffffcc;
FONT-FAMILY:
Arial; HEIGHT: 11px; BACKGROUND-COLOR: transparent">
<TR>
<TD>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<TR>
<TD vAlign="top" align="center" colSpan="2" height="100%"><div
id="PanLista"
align="Center" style="height:130px;width:100%;">
<BR>
<TABLE id="tblLista" style="HEIGHT: 133px" cellSpacing="1"
cellPadding="1"
width="80%"
align="center" border="0">
<TR>
<TD vAlign="middle" align="center" colSpan="1">
<table cellspacing="0" rules="all" bordercolor="LightSteelBlue"
border="2"
id="GExp"
style="border-color:LightSteelBlue;border-width:2px;border-style:
Solid;height:123px;width:85%;border-collapse:collapse;">
<tr>
<td
style="color:SlateGray;font-family:Arial;font-size:9pt;width:
70%;">CarĂ¡tula</td><td>NĂºmero
de Expediente</td>
</tr><tr>
<td style="color:DarkBlue;font-family:Arial;font-size:8pt;"><a
href="javascript:__doPostBack('DGExp$_ctl2$_ctl0','')"
style="color:DarkBlue;">ARES ALBERTO </a></td><td><a
href="javascript:__doPostBack('DGExp$_ctl2$_ctl1','')">024-20
-04020975-2-0941</a></td>
</tr><tr>
<td style="color:DarkBlue;font-family:Arial;font-size:8pt;"><a
href="javascript:__doPostBack('DGExp$_ctl3$_ctl0','')"
style="color:DarkBlue;">ARES ALBERTO </a></td><td><a
href="javascript:__doPostBack('DGExp$_ctl3$_ctl1','')">997-00
-22698319-0-0580</a></td>
</tr>
</table></TD>
</TR>
</TABLE>
</div></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>
I'm receive the error with this parameter
__VIEWSTATE=dDwxODY0Nzg1OTExO3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDM+O2k8ND47aT
w2PjtpPDg+O2k8MTA+Oz47bDx0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Pjs7Pjt0
PDtsPGk8Mz47PjtsPHQ8QDA8cDxwPGw8UGFnZUNvdW50O18hSXRlbUNvdW50O18hRGF0YV
NvdXJjZUl0ZW1Db3VudDtEYXRhS2V5czs+O2w8aTwxPjtpPDI+O2k8Mj47bDw+Oz4+Oz47
Ozs7Ozs7Ozs7PjtsPGk8MD47PjtsPHQ8O2w8aTwxPjtpPDI+Oz47bDx0PDtsPGk8MD47aT
wxPjtpPDI+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDs+O2w8QVJFUyBBTEJF
UlRPICAgICAgICAgICAgIDs+Pjs+Ozs+Oz4+O3Q8cDxwPGw8VGV4dDs+O2w8MDI0LTIwLT
A0MDIwOTc1LTItMDk0LTE7Pj47Pjs7Pjt0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDs+
O2w8MDI0LTIwLTA0MDIwOTc1LTItMDk0LTE7Pj47Pjs7Pjs+Pjs+Pjt0PDtsPGk8MD47aT
wxPjtpPDI+Oz47bDx0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDs+O2w8QVJFUyBBTEJF
UlRPICAgICAgICAgICAgIDs+Pjs+Ozs+Oz4+O3Q8cDxwPGw8VGV4dDs+O2w8OTk3LTAwLT
IyNjk4MzE5LTAtMDU4LTA7Pj47Pjs7Pjt0PDtsPGk8MD47PjtsPHQ8cDxwPGw8VGV4dDs+
O2w8OTk3LTAwLTIyNjk4MzE5LTAtMDU4LTA7Pj47Pjs7Pjs+Pjs+Pjs+Pjs+Pjs+Pjt0PH
A8cDxsPFRleHQ7PjtsPExvcyBkYXRvcyBlc3TDoW4gYWN0dWFsaXphZG9zIGFsIDI3LzA2
LzIwMDUgMDA6MDA7Pj47Pjs7Pjt0PHA8bDxWaXNpYmxlOz47bDxvPGY+Oz4+Ozs+O3Q8cD
xsPFZpc2libGU7PjtsPG88Zj47Pj47Oz47Pj47Pj47Prx9thUjhIR+VJE5rf58NF2sokZG
What's is the correctly way to send this parameters or whats is
necesary to
set the htttpclient component
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be