You are here
Connection reset
Submitted by seagullocean on Thu, 07/30/2009 - 5:01am
Hi,
when i tried to call api :
http://api.semantichacker.com/********/category/odp_2007_l1_1.7k?
filter=html&showLabels=true&content=Congressmanblahblahblah
PS: the parameter "content=" have number of characters exceeds certain maximum length, the server side will throw out socket connection error:connection reset.
Do you ever encounter this scenario?and any solution for it? meanwhile, if i copy and paste the same "content" in api's url parameter to the semantic hacker demo web site..it is working perfectly fine ...any idea?
thanks
Regards
fang
Forums:
Hello, I suspect the problem
Hello,
I suspect the problem you are experiencing is due to limits on the length of a parameter in an HTTP 'GET' request. If you look at the documentation page for API Requests...
http://www.semantichacker.com/api_docs/api/api-req.xhtml
You'll see that parameters in a GET request should be no more then 1000 characters. In addition, your web browser may be imposing a limit on parameter sizes, and/or URL length. If you wish to send large content to the API, you should use some type of HTTP 'POST' request. How that is accomplished is described in the documentation.
Good Luck, and thanks for using the Semantic Hacker API.
-Anthony
Hello Anthony.. thanks for
Hello Anthony..
thanks for the reply. i had tried the "POST" method..however, it is still the same. Thus,i had filtered out some english-stop-word..however, some documents were still having the same error. it's ok, i think it's the limit of url length problems..thanks ya..
Regards
Fang