[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTTP API - EXAMPLE8 - HTTP/1.1 500 Internal Server Error
Hello,
I have copied Example8 program to post the file. But I am getting
following Error.
HTTP/1.1 500 Internal Server Error
Is it Error from the server or from the code I modified ? Can some one
explain this error ? I am very new to these concepts.
I modified 2 lines Example8 as below:
eval stmf = '/home/trigger1.json'
.
eval rc=http_url_post('[1]http://events.pager'+
'[2]duty.com/generic/2010-04-15/'+
'create_event.json':
p_data: st_size:
'/httptest.html')
/home/trigger1.json contains following data
{
"service_key": "3397ab606eba012eae1812313d009e57",
"incident_key": "HTTPAPI01",
"event_type": "trigger",
"description": "Testing Trigger from HTTP API by Reddy by Reddy "
}
I want to post this data to
[3]http://events.pagerduty.com/generic/2010-04-15/create_event.json
--
Narasimha Reddy
References
1. http://events.pager/
2. http://duty.com/generic/2010-04-15/'+
3. http://events.pagerduty.com/generic/2010-04-15/create_event.json
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------