Hi,
A while back there was a fix to include query parameters in POST requests too (#12). There is a small inconsistency with the API now, in that Session.Post accepts a payload, but no params, meaning that I cannot - easily - set query parameters as for Get, but rather have to manually construct a request to add the parameters:
session.Get(url, ¶ms, res, nil)
versus
req := &napping.Request{
Method: "POST",
Url: url,
Params: ¶ms, // <- setting this one is missing from the API
Result: res,
Error: nil,
}
rep, err := session.Send(req)
// ...
Cheers,
Peter
Hi,
A while back there was a fix to include query parameters in POST requests too (#12). There is a small inconsistency with the API now, in that Session.Post accepts a payload, but no params, meaning that I cannot - easily - set query parameters as for Get, but rather have to manually construct a request to add the parameters:
versus
Cheers,
Peter