Страница 1 из 1

api вызов

Добавлено: 2011-06-17 23:08:02
gumeniuc
Доброго времени суток.

Вопрос следующий. При отправке вызова через API используя браузер, всё отрабатывает нормально. Имею желание сделать вызов через bash. При попытки сделать вызов через curl

Код: Выделить всё

curl "http://192.168.1.2:8080/XmlPo.po?SP=edit('6','120',?int status )"
получаю следующий ответ.

Код: Выделить всё

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>400 Bad Request</TITLE>
</HEAD><BODY>
<H1>Bad Request</H1>
Your browser sent a request that this server could not understand.<P>
The request line contained invalid characters following the protocol string.<P>
<P>
<HR>
</BODY></HTML>
Поскажите пожалуйста, как можно отправить подобный вызов ?!
спасибо

Re: api вызов

Добавлено: 2011-06-17 23:28:09
rmn

Re: api вызов

Добавлено: 2011-06-18 0:47:40
gumeniuc
спасибо за подсказку. После замены уже вырисовывается другая ошибка:

Код: Выделить всё

<HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.</PRE></BODY></HTML>