| Author |
Multiple request in single connection using HttpClient
|
Ashish Kirpan
Greenhorn
Joined: Jan 24, 2011
Posts: 20
|
|
hi I am using these classes
org.apache.commons.httpclient.HttpClient;
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
org.apache.commons.httpclient.methods.PostMethod;
to send multiple request in single connection.
but i get 403 forbidden error as response
i also use the correct certificate.
is anything is missing. i use jdk1.4.09 for this class.
Please help if anyone know...
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
Error 403 means "Forbidden". That usually means one of the following:
1) you forgot to login somewhere
2) the resource is only accessible if the referer is the same site (or one of the other allowed hosts)
3) you are not on the allowed hosts list, based on IP
4) you are explicitly blocked, based on IP
My guess is the second reason is applicable here.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Ashish Kirpan
Greenhorn
Joined: Jan 24, 2011
Posts: 20
|
|
Thanks Rob
but according to my observation there is no IP blocked
Site is HTTPS and accessible to everything
i m also sending certificate to server
but i got 403 consistntaly.
Any suggession???
or any alternative way to send multiple request to server.
|
 |
Ashish Kirpan
Greenhorn
Joined: Jan 24, 2011
Posts: 20
|
|
Hi Rob,
your fourth option is correct, our IP was blocked.
Thanks.
|
 |
 |
|
|
subject: Multiple request in single connection using HttpClient
|
|
|