revel / modules

Officially supported Revel modules
http://revel.github.io/modules/
MIT License
49 stars 46 forks source link

Create test cases to help unit testing CSRF module #96

Open notzippy opened 5 years ago

notzippy commented 5 years ago

In order to do form posting you must pass the csrf value back to the server. This request is to create a helper test case to perform this. Simply extending the existing testcases and adding a CSRForm post method should suffice.

See #83

Jaywalker commented 1 year ago

Writing some testcases for my app right now and I'm up against this wall. Any easy workarounds for this? I've tried using PostFormCustom and adding a referer header manually, but I'm getting unsupported protocol scheme "" on my .Send() call. Probably something obvious that I'm missing, but it's late.

notzippy commented 1 year ago

There is a community here which should be able to help you