Search found 21 matches

by msddcb
Sat Sep 25, 2021 11:33 pm
Forum: HTTPAPI
Topic: SetError() #44: CommTCP_read: Socket has been shut down.
Replies: 2
Views: 12401

Re: SetError() #44: CommTCP_read: Socket has been shut down.

Thanks Scott,
I checked with the sys admin and he did restart the server right in the middle of our test!
by msddcb
Thu Sep 23, 2021 4:03 am
Forum: HTTPAPI
Topic: 13 HTTP/1.1 202 Accepted - Attempting to post
Replies: 11
Views: 23345

Re: 13 HTTP/1.1 202 Accepted - Attempting to post

Ok this is now working - Hurrah! The issue in the end is embarrassing - turns out the timestamp I was using was invalid. My conversion to epoch when done manually was wrong, my program that does it was correct, so once I started using real data it was posted and processed correctly. Thank you very m...
by msddcb
Thu Sep 23, 2021 3:57 am
Forum: HTTPAPI
Topic: SetError() #44: CommTCP_read: Socket has been shut down.
Replies: 2
Views: 12401

SetError() #44: CommTCP_read: Socket has been shut down.

I am attempting to post a number of messages to an external server. After a number of messages have been successfully posted I get the error; SetError() #44: CommTCP_read: Socket has been shut down. This is then followed by SetError() #6: connect(2): A remote host refused an attempted connect operat...
by msddcb
Wed Sep 22, 2021 5:30 am
Forum: HTTPAPI
Topic: 13 HTTP/1.1 202 Accepted - Attempting to post
Replies: 11
Views: 23345

Re: 13 HTTP/1.1 202 Accepted - Attempting to post

I have captured a packet trace and looking at the trace data I am seeing a slight difference. Interestingly HTTPAPI is sending different size frames to curl so the data is over two frames. Looking at the two postings we see slight difference; POST /gelf HTTP/1.1..Host: Bnelog1.isuzu.local:12201..Use...
by msddcb
Tue Sep 21, 2021 5:20 am
Forum: HTTPAPI
Topic: 13 HTTP/1.1 202 Accepted - Attempting to post
Replies: 11
Views: 23345

Re: 13 HTTP/1.1 202 Accepted - Attempting to post

The result.txt is empty. How to reproduce - very good question, let me work on that. I will run a packet capture and see if I can identify a difference between the curl post and the httpapi post. I was hoping that there may be some obvious difference between the curl option and the httpapi option th...
by msddcb
Tue Sep 21, 2021 4:36 am
Forum: HTTPAPI
Topic: 13 HTTP/1.1 202 Accepted - Attempting to post
Replies: 11
Views: 23345

Re: 13 HTTP/1.1 202 Accepted - Attempting to post

I have downloaded and installed version 1.45 I have run the same test and no error is displayed. In the debug log I still see the HTTP/1.1 202 Accepted And the log entry is NOT added to the syslog server. So if I use curl this works; /QOpenSys/pkgs/bin/curl -X POST -H 'Content-Type: application/json...
by msddcb
Tue Sep 21, 2021 3:46 am
Forum: HTTPAPI
Topic: 13 HTTP/1.1 202 Accepted - Attempting to post
Replies: 11
Views: 23345

Re: 13 HTTP/1.1 202 Accepted - Attempting to post

Thank you - I will and will advise how it goes.
by msddcb
Tue Sep 21, 2021 2:42 am
Forum: HTTPAPI
Topic: 13 HTTP/1.1 202 Accepted - Attempting to post
Replies: 11
Views: 23345

Re: 13 HTTP/1.1 202 Accepted - Attempting to post

I was only using the command to test and once working I was going to add it to a RPG program. So you are suggesting it is a problem with the command - I hope that is the case as I have tried many slight alterations with all returning the same message. I will write the rpg option and advise an update...
by msddcb
Thu Sep 16, 2021 4:12 am
Forum: HTTPAPI
Topic: 13 HTTP/1.1 202 Accepted - Attempting to post
Replies: 11
Views: 23345

13 HTTP/1.1 202 Accepted - Attempting to post

I am trying to post an entry to a GreyLog syslog server. I can successfully post a log using curl from a strqsh session - see example below. But when I try using the HTTPAPI Command it fails which I was using for a quick test and perhaps is a limitation of the command ?? This works The following com...
by msddcb
Tue Aug 10, 2021 11:28 pm
Forum: HSSFR4
Topic: Apache POI 3.6 - Help with RowShift
Replies: 10
Views: 36686

Re: Apache POI 3.6 - Help with RowShift

While this response is not going to help you with RowShift my comment is WHY? We provide transaction lists in Excel for clients and we just generate a new spreadsheet as required. Is there a problem that the previous data is not available ? If data is available why complicate the process ? There may...