Highlighted

Not able access page through curl command

girishk14

10-11-2017

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.

Replies

Highlighted

BrijeshYadav

10-11-2017

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

Highlighted

smacdonald2008

10-11-2017

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