smandape1 has asked for the wisdom of the Perl Monks concerning the following question:
Hello experts, I am trying to extract data from web using Connotea perl API. While extracting the data I get this error
Invalid content type in response: text/html at mycode line 41Mycode is the code I am using and line 41 is the code to get the tags from connotea. I learned that Connotea perl is not LWP::UserAgent. It only accepts RDF MIME types, i.e., application/xml or application/rdf+xml. text/html isn't either, and that is where your error comes from. In this case, the server is saying the content isn't RDF (as it isn't XML). Also one of the experts suggested me to use eval{} around virtually all connotea perl code. I tried but I don't understand how to deal with this. I greatly appreciate your help. Thank you, Sammed
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Invalid content type in response: text/html..error handling
by ww (Archbishop) on Jul 17, 2011 at 23:05 UTC | |
by smandape1 (Acolyte) on Jul 18, 2011 at 01:43 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |