Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Not able access page through curl command

Avatar

Level 2

When I am trying to access any page through the curl command i.e curl http://IP/en/home.html from the author server, I am getting the below error:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>

<title>Error 500 </title>

</head>

<body>

<h2>HTTP ERROR: 500</h2>

<p>Problem accessing /en/home.html (path of page ). Reason:

<pre>    java.lang.NullPointerException</pre></p>

<hr /><i><small>Powered by Jetty://</small></i>

</body>

</html>

The IP whitelisting has been done and I able to telnet as well.

Any suggestions to debug on this issue.

3 Replies

Avatar

Community Advisor

Could you please try to elaborate more about your requirement ?
Do you want to read html response ? Do you want perform any other action like activate, copy , replicate etc .

Hope this could help you  CQ5 curl commands · GitHub

/Brijesh Yadav

Avatar

Level 2

Hi Brijesh,

I need to get the html pf the page as a response.

Avatar

Level 10

Another option you can do is write a sling servlet that reads the node at a specific resource and returns HTML as return value.