• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple request in single connection using HttpClient

 
Ashish Kirpan
Greenhorn
Posts: 22
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20545
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ashish Kirpan
Greenhorn
Posts: 22
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rob,
your fourth option is correct, our IP was blocked.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic