Thanks for the reply but actually that was me asking that question a few months back. I got so frustrated I stepped away from the problem. Now I'm back determined to find a solution. As what was mentioned in that response the HttpCore is built on URI and I have not found a way to bypass the java.net.URISyntaxException: Illegal character in query at index exception that is thrown when illegal characters are added to the query.
So, as an example, I need to send a request like http://example.com?var=<xss> <====== not url encoded Problem is no matter what I try the URI class throws an exception. I'm trying to avoid having to have to re-invent the wheel and build my own HTTPClient class.You think I have another option? Thanks in advance for the help, Steve _____ From: Sam Crawford [[email protected]] Sent: Saturday, April 02, 2011 3:00 PM To: HttpClient User Discussion Cc: Steve Labarbera Subject: Re: Trying to send raw requests without URL encodings? Hi Steve, A very similar question was asked here: http://old.nabble.com/Apache's-HttpClient-don't-want-URL-Encoding-any-ideas-how-I-can-bypass--td25762297.html This only deals with the request URL, but it would mean you don't need to move to HttpCore. Implementing your own RequestEntity makes the most sense to me for handling the POST scenario. Hope this helps, Sam On 2 April 2011 22:15, Steve Labarbera <[email protected]> wrote: > I'm trying to send requests out without any URL encoding. This is necessary > because we need to simulate sending requests bypassing the browser encoding > the parameters. I have done a bunch of reading and it appears that one user > mentioned implementing my own RequestEntity class. Is this the best option? > > - Ideally, I need to be able to send anything in the url or post parameters > without any URL encoding being done on them before being sent to the server. > > - Would HttpClient be best approach or will I need to use a lower level > library like HttpCore. > > Any input that can help me move forward would be very helpful. > > Thanks, > > Steve > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > ________________________________________ From: Sam Crawford [[email protected]] Sent: Saturday, April 02, 2011 3:00 PM To: HttpClient User Discussion Cc: Steve Labarbera Subject: Re: Trying to send raw requests without URL encodings? Hi Steve, A very similar question was asked here: http://old.nabble.com/Apache's-HttpClient-don't-want-URL-Encoding-any-ideas-how-I-can-bypass--td25762297.html This only deals with the request URL, but it would mean you don't need to move to HttpCore. Implementing your own RequestEntity makes the most sense to me for handling the POST scenario. Hope this helps, Sam On 2 April 2011 22:15, Steve Labarbera <[email protected]> wrote: > I'm trying to send requests out without any URL encoding. This is necessary > because we need to simulate sending requests bypassing the browser encoding > the parameters. I have done a bunch of reading and it appears that one user > mentioned implementing my own RequestEntity class. Is this the best option? > > - Ideally, I need to be able to send anything in the url or post parameters > without any URL encoding being done on them before being sent to the server. > > - Would HttpClient be best approach or will I need to use a lower level > library like HttpCore. > > Any input that can help me move forward would be very helpful. > > Thanks, > > Steve > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
