We are trying to send a http Location command.
It all works if the URL we are sending is under 250 characters. But if we send a url
which is longer, it is truncated.
We are doing:
public int btnLocation_onWebEvent(CSpWebEvent event)
{
int command = PROCEED;
CSpStringOutputStream ostream = CSpider.getOutputStream();
CSpHttp.reset();
ostream.write("Location:
http://xxxxx:80/cgi-bin/rwcgi60.exe?server=Rep60_4IQ0M&report=labels.rdf");
ostream.write("&userid=aisrptdev/run4it@scap&dept1=2460&divn1=0&divn2=0&divn3=0&divn4=0&divn5=0");
ostream.write("&divn6=0&divn7=0&divn8=0&divn9=0&divn10=0&divn11=0&divn12=0&divn13=0&divn14=0&divn15=0&divn16=0");
ostream.write("&divn17=0&divn18=0&divn19=0&divn20=0&divn21=0&divn22=0&divn23=0&divn24=0&divn25=0&divn26=0");
ostream.write("&divn27=0&divn28=0&divn29=0&divn30=0&divn31=0&divn32=0&divn33=0&divn34=0&divn35=0&divn36=0&divn37=0");
ostream.write("&divn38=0&divn39=0&divn40=0&divn41=0&divn42=0&divn43=0&divn44=0&divn45=0&divn46=0&divn47=0&divn48=0");
ostream.writeln("&divn49=0&divn50=0&type=0&cat1=1&cat2=0&cat3=0&gl_beg_date=9/1/99&gl_end_date=9/1/00&destype=cache&desformat=pdf\n");
try
{
CSpHttp.flush(ostream);
}
catch (Exception e)
{
return (SKIP);
}
return(SKIP);
}
Any suggestions? It works if we shorten it. It appears that this is Netdynamics
assuming a header can only be 250 characters,
and therefore truncating it. I can do this in Perl, so I know there is no such
restriction.
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]