Menu

#16 Support for custom HTTP error pages in HTML

open
nobody
None
5
2007-02-09
2007-02-09
No

It is not possible at the moment to handle a HTTP GET request, and return a custom HTML error page with a HTTP error.

This has been mentioned multiple times in the group and a couple of possible solutions presented. It would be wonderful to get support for this added to the gsoap2 release.

Regards,
Brodie

http://tech.groups.yahoo.com/group/gsoap/message/4867

stdsoap2.c[pp] Line 10099, inside the function soap_puthtttphdr:
- else if (status == SOAP_HTML)
s = "text/html; charset=utf-8";
+ else if (status == SOAP_HTML ||
+ (status > 200 && status < 600 && !soap->fault))
s = "text/html; charset=utf-8";

http://tech.groups.yahoo.com/group/gsoap/message/5093

soap_init() and soap_end_send()
+ soap->http_content = 0;

soap_puthttphdr:
+ else if ( soap->http_content )
+ s = soap->http_content;
else
s = "text/xml; charset=utf-8";

http://tech.groups.yahoo.com/group/gsoap/message/13390

Poor workaround method.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.