PoSH Server

Support - FAQ

How do I run it in background?

On May 22th 2012

After PoSHServer v1.6, you can run it as a background service.

You just need to use:

  • -asJob

parameter at the end to your Start-PoSHServer command.

How do I enable SSL support?

On October 31th 2012

Just provide IP address and port for SSL traffic:

  • -SSL -SSLIP 192.168.2.1 -SSLPort 443

If you don't provide, PoSHServer uses IP:127.0.0.1 and Port:8443 by default.

How do I get Cookie values?

On May 9th 2012

After PoSHServer v1.5, you can get "Cookie" values.

You can get "Cookie" values like this:

  • $PoSHCookies

This will give you session ID of that user.

How do I fetch GET values?

On May 8th 2012

After PoSHServer v1.5, you can fetch "GET" values.

For example, this is your GET:
http://localhost:8080/index.ps1?name=Yusuf&surname=Ozturk

Then you can fetch "GET" values like this:

  • $PoSHQuery.name
  • $PoSHQuery.surname

This will give you values directly.

How do I fetch POST values?

On May 8th 2012

After PoSHServer v1.5, you can fetch "POST" values.

For example, this is your POST:
name=Yusuf&surname=Ozturk

Then you can fetch "POST" values like this:

  • $PoSHPost.name
  • $PoSHPost.surname

This will give you values directly.

How can I use jscript on PoSHServer?

On May 8th 2012

There is no jscript limitation on PoSHServer.
However you need to use escape characters to make it work.

If you need to use something like this:

  • $(function() { $.ajax({

Then you should change your codes like this:

  • `$(function() {`$.ajax({

` is a escape character in PowerShell.