Hello Raja, > The page, when i am requesting through the browser, i am able to get > the result page. > When i am using HttpClient, the response is 500. > The parameters which i am sending with the request contains some > encypted values, i have pasted the code below,
Since you are trying to emulate browser behavior, you should use a packet sniffer or logging proxy to record the *exact* request the browser sends. Then we could compare the browser request with the request generated by HttpClient, and tell you more precisely what you have to change. > PostMethod method3 = new > ... > NameValuePair nvp26 = new > NameValuePair("radFlightFrom","yttyww}ÉÔÎÎËtzx~w|Áy|w}Á|wxgÏgy|gxGwwÐÖÉÎÈààyËtzx~Ëtzx~txw|yy~wwyyxwww"); > ... > method3.setRequestBody(new NameValuePair[]{nvp25,nvp26,nvp27,nvp28}); PostMethod.setRequestBody(NameValuePair[]) is not well equipped to deal with non-ASCII charsets. You can try to create a MultipartRequestEntity: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/multipart/MultipartRequestEntity.html with StringParts and an appropriate charset: http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/methods/multipart/StringPart.html You can also try to set a Content-Type header with appropriate charset. > Wire Log: > ... Not really the wire log. I didn't see any ">>>" or "<<<" output, so you only got the trace log. > <p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error > '800a0009'</font> > <p> > <font face="Arial" size=2>Subscript out of range: '[number: 0]'</font> > <p> > ... > Status Line :::::::::::: HTTP/1.1 500 Internal Server Error Any kind of things can go wrong on the server in the VB Script. Maybe you forgot a parameter, or a parameter is sent with an empty value which the VB script doesn't expect (maybe because of a charset problem)? Please record the request sent by the browser (or at least the headers) and generate a wire log of the HttpClient communication. cheers, Roland --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]