Question: So, because this is for a school project, I can't post actual source code for what is going on. Instead, I will try to explain what's going on and use some code snippets.

For the project, a JPanel, contained by a JFrame, holds most of the Components of the overall GUI. I'll have like

```
JButton b1 = new Button("Option 1");
JButton b2 = new Button("Option 2");
JPanel p = new JPanel();
p.add(b1);
p.add(b2);

```

Adding this to the JFrame object works just fine, but when I have

```
JMenuBar mb = new JMenuBar();
JPopupMenu pm = new JPopupMenu("File");
mb.add(pm);
myJFrameObject.add(mb);

```

the menu bar is nowhere to be seen. Should I have used

```
myJFrameObject.setJMenuBar(mb);

```

instead? I remember that not really doing anything either. By the way, I have been using BoxLayout for the frame.

Answer: 
The 3rd argument to [`open`](http://msdn.microsoft.com/en-us/library/ms763809(v=vs.85).aspx) should be a boolean, specifying whether or not the request should be asynchronous. 

```
oServerXMLHTTPRequest.open bstrMethod, bstrUrl, bAsync, bstrUser, bstrPassword

```

> 
> **bstrMethod**The HTTP method used to open the connection, such as PUT or
>  PROPFIND. For ServerXMLHTTP, this parameter is case-sensitive and the
>  method name must be entered in all upper-case letters. **bstrUrl** The
>  requested URL. This can be either an absolute URL, such as
>  "<http://example.com/Mypath/Myfile.asp>", or a relative URL, such as
>  "../MyPath/MyFile.asp".**bAsync** (optional) Boolean. Indicator as to
>  whether the call is asynchronous. The default is False (the call does
>  not return immediately). **bstrUser** (optional) The name of the user for
>  authentication. **bstrPassword** (optional) The password for
>  authentication. This parameter is ignored if the user parameter is
>  Null or missing.
> 
> 
> 

---

With a bit of experimentation and help from [another question](https://stackoverflow.com/questions/11573022/vba-serverxmlhttp-https-request-with-self-signed-certificate), I think you just need to change

```
xmlhttp.SetOption SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS, true

```

to

```
xmlhttp.SetOption 2, xmlhttp.GetOption(2) - SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS

```
If you're using Windows 8, Windows 8.1 or Windows Server 2012/2012R2, you might have to apply the following HotFix, which fixed this problem for me in a similar scenario:

<https://support.microsoft.com/en-us/help/2968741/error-0x80070057-when-sql-server-communicates-to-a-web-server-using-st>

For further info you can also [read this post](http://www.ryadel.com/en/msxml2-xmlhttp-serverxmlhttp-error-0x80070057-parameter-incorrect-post-http-request-t-sql-server-2008-2012-sp-fix/) on my blog or take a look to [this other SO thread](https://stackoverflow.com/questions/26765782/msxml3-dll-in-context-sp-oamethod-send).