WebRequest.GetState
-------------------

Queries the state of the web request.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebHook](component_WebHook.md) | [12.0](newinversion120.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "WebRequest.GetState"; WebRequest ) 

**MBS**( **"WebRequest.GetState";** /\* Queries the state of the web request. \*/  
**$WebRequest**) /\* The reference number of the web request. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebRequest | The reference number of the web request. | $WebRequest |

### Result

Returns number or error.

### Description

Queries the state of the web request.  
State 0 is freshly allocated, 1 is connection received, 2 is data arrived, 3 is processed.  
If you use [WebHook.Check](WebHookCheck.md), you may only see requests with state 3, but if you use [WebHook.List](WebHookList.md), you may see earlier states like 1 and 2.  
### See also

- [WebHook.List](WebHookList.md)
- [WebRequest.GetHeaders](WebRequestGetHeaders.md)
- [WebRequest.GetHost](WebRequestGetHost.md)
- [WebRequest.GetRawData](WebRequestGetRawData.md)
- [WebRequest.GetSSL](WebRequestGetSSL.md)
- [WebRequest.GetTag](WebRequestGetTag.md)
- [WebRequest.GetURL](WebRequestGetURL.md)
- [WebRequest.List](WebRequestList.md)
- [WebRequest.Release](WebRequestRelease.md)
- [WebRequest.SetTag](WebRequestSetTag.md)

### Release notes

- **Version 12.0**
    - Added [WebRequest.GetState](https://www.mbsplugins.eu/WebRequestGetState.shtml) function.

### Blog Entries

- [Top 10 from the MBS Plugin in 2022](https://www.mbsplugins.de/archive/2022-12-29/Top_10_from_the_MBS_Plugin_in_/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 12.0](https://www.mbsplugins.de/archive/2022-01-18/Neues_MBS_FileMaker_Plugin_120/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 12.0 - More than 6700 Functions In One Plugin](https://www.mbsplugins.de/archive/2022-01-18/MBS_FileMaker_Plugin_120_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.6pr4](https://www.mbsplugins.de/archive/2021-12-22/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 15th December 2021 , last changed 16th January 2022

  
[WebRequest.GetSize](WebRequestGetSize.md) - [WebRequest.GetTag](WebRequestGetTag.md)

[HTML Version](WebRequestGetState.shtml)