Unable to connect to HTTP Web Server

delphi package - automated exception handling
Post Reply
ZSL
Posts: 54
Joined: Thu Mar 31, 2016 11:23 pm

Unable to connect to HTTP Web Server

Post by ZSL »

Here is my set up
2016-04-06 17_00_28-madExcept 4.0.14 settings.png
2016-04-06 17_00_28-madExcept 4.0.14 settings.png (43.81 KiB) Viewed 6116 times
I am unable to connect yet when I place this is a line browser I see the messages coming in.

Please advise what I missing or doing incorrectly

TIA
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Unable to connect to HTTP Web Server

Post by madshi »

Is there some PHP script? If so, please include the PHP script in the server path. E.g. like "yourServer.com/BugCatcher/Catcher.php".
ZSL
Posts: 54
Joined: Thu Mar 31, 2016 11:23 pm

Re: Unable to connect to HTTP Web Server

Post by ZSL »

No. There is no PHP.

The Web Server just accepts anything that is sent to it.

I do not see any raw data from madshi being received at the interface. The email is received at the SMTP server.

Regards
Last edited by ZSL on Wed Apr 06, 2016 12:39 pm, edited 1 time in total.
ZSL
Posts: 54
Joined: Thu Mar 31, 2016 11:23 pm

Re: Unable to connect to HTTP Web Server

Post by ZSL »

... found the problem ...

The Web Server is configured to accept GET request methods and the message is coming in as POST.

Thanks for your response.

Regards
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Unable to connect to HTTP Web Server

Post by madshi »

Ah, good to know. So you got it working now?
ZSL
Posts: 54
Joined: Thu Mar 31, 2016 11:23 pm

Re: Unable to connect to HTTP Web Server

Post by ZSL »

Not yet.

I am looking through the madshi docs to find the structure of the posted message
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Unable to connect to HTTP Web Server

Post by madshi »

It should be a simple POST form, nothing special (unless you want to support passwords, then it gets a bit more complicated). Here is an example PHP script:

http://help.madshi.net/UploadPhp.htm
ZSL
Posts: 54
Joined: Thu Mar 31, 2016 11:23 pm

Re: Unable to connect to HTTP Web Server

Post by ZSL »

Thanks. I did read that.

What I need is the structure and parameters of the message that is sent.

For example, is each header bug report line sent as a Request parameter or is it all contained in the body, etc.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Unable to connect to HTTP Web Server

Post by madshi »

You can check "TWinHttp.InternalPost" in madExcept.pas to see the code that does the sending. It's using some win32 APIs, too, in order to support SSL etc, so the code might not be too clear, but you should be able to see the framework. I don't think it's anything special, just a proper HTTP POST, according to official specs.

The bug report (including the full bug report header etc) is sent as a file attachment.
ZSL
Posts: 54
Joined: Thu Mar 31, 2016 11:23 pm

Re: Unable to connect to HTTP Web Server

Post by ZSL »

I have now figured it out.

Just for information, I am posting the bug report to the a web server that in turn posts the results to a database that tracks/monitors user logged in to the application (as opposed to the operating system), the application registered site id, application registered work station id so that our support staff can track and monitor not only bugs but also operational errors/issues that users on sites are experiencing in order to improve our training as well as improving our product.

It is close to 1 a.m. where I am and I will finish this tomorrow.

Thanks for your help

Best Regards
Post Reply