# IndyHTTP-Post get only WDSL in WebBrowser

**URL:** https://talk.remobjects.com/t/indyhttp-post-get-only-wdsl-in-webbrowser/6553
**Category:** Remoting SDK
**Created:** [July 15, 2015, 9:43am UTC](https://talk.remobjects.com/t/indyhttp-post-get-only-wdsl-in-webbrowser/6553 "2015-07-15T09:43:34Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [July 17, 2015, 9:16am UTC](https://talk.remobjects.com/t/indyhttp-post-get-only-wdsl-in-webbrowser/6553/14 "2015-07-17T09:16:14Z")

</div>

you can

- change all interfaces to envlop in all detailled stuff (like \_\_MessageType, \_\_InterfaceName, …)  
or
- use [OnCustomResponseEvent](http://wiki.remobjects.com/wiki/TROIndyHTTPServer_Class#OnCustomResponseEvent), something like

```auto
TMegaDemoServerMainForm = class(TForm)
..
  procedure ROServerCustomResponseEvent(
    const aTransport: IROHTTPTransport; const aRequestStream,
    aResponseStream: TStream; const aResponse: IROHTTPResponse;
    var aHandled: Boolean);

....

procedure TMegaDemoServerMainForm.FormCreate(Sender: TObject);
...
  ROIndyHTTPServer := TROIndyHTTPServer.Create(Self);
  ROIndyHTTPServer.OnCustomResponseEvent := ROServerCustomResponseEvent; //added

...
procedure TMegaDemoServerMainForm.ROServerCustomResponseEvent(
  const aTransport: IROHTTPTransport; const aRequestStream,
  aResponseStream: TStream; const aResponse: IROHTTPResponse;
  var aHandled: Boolean);
var
  lMessage: IROMessage;
  op: TROResponseOptions;
  s: ansistring;
begin
  if pos('/xxxx',aTransport.PathInfo) = 1 then begin // "xxxx" shouldn't be defined in Server.Dispathers
    SetLength(s, aRequestStream.Size);
    aResponseStream.Position := 0;
    aRequestStream.Read(Pointer(s)^, Length(s));
    s := ' __MessageType=Message&__ InterfaceName=MegaDemoService&'+s;
    aRequestStream.Size := 0;
    aRequestStream.Write(Pointer(s)^, Length(s));

    lMessage:= (ROPOSTMessage as IROMessageCloneable).Clone;
    MainProcessMessage(lMessage,atransport,aRequestStream,aResponseStream,op);
    aHandled := True;
  end;
end;

```

in this case, .html can pass only \_\_MessageName:

```auto
<html><body><form method="POST" action="http://localhost:8099/xxxx">
__MessageName:<input type="text" name="__ MessageName" size="45" value="GetServerTime">
<input type="submit">
</form></body></html>

```

---

_[View the full topic](https://talk.remobjects.com/t/indyhttp-post-get-only-wdsl-in-webbrowser/6553)._
