# Http class, private method

**URL:** https://talk.remobjects.com/t/http-class-private-method/22463
**Category:** Elements RTL
**Created:** [July 2, 2020, 4:10am UTC](https://talk.remobjects.com/t/http-class-private-method/22463 "2020-07-02T04:10:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [July 2, 2020, 4:10am UTC](https://talk.remobjects.com/t/http-class-private-method/22463/1 "2020-07-02T04:10:59Z")

</div>

Hi,  
There is this method

method ExecuteRequestSynchronous(aRequest: not nullable HttpRequest; aThrowOnError: Boolean): nullable HttpResponse;

Does it really have to be private ?

I don’t want to be catching exceptions. The following would be preferred.

```
      if(response.Success)then
      begin

```

Looking at the code, I think if I could call that overload, it would return a response where success is false ?  
Cheers,  
John

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [July 2, 2020, 12:35pm UTC](https://talk.remobjects.com/t/http-class-private-method/22463/2 "2020-07-02T12:35:39Z")

</div>

isn’t that what

```
method TryExecuteRequestSynchronous(aRequest: not nullable HttpRequest): nullable HttpResponse;

```

is for?

---

<div class="post-metadata">

### Author: ![JohnMoshakis](https://talk.remobjects.com/user_avatar/talk.remobjects.com/johnmoshakis/32/2286_2.png) [@JohnMoshakis](https://talk.remobjects.com/u/JohnMoshakis)
#### Post date: [July 2, 2020, 2:07pm UTC](https://talk.remobjects.com/t/http-class-private-method/22463/3 "2020-07-02T14:07:37Z")

</div>

Oops yes sorry, that looks like what I need
