$ua->build_tx(GET => 'http://foo.de/?a=1', form => {b => 1});

should replace the query params instead of merge.

Got Result:
GET /?a=1&b=1 HTTP/1.1
Host: foo.de
Content-Length: 0
User-Agent: Mojolicious (Perl)
Accept-Encoding: gzip


Expected Result:
GET /?b=1 HTTP/1.1
Host: foo.de
Content-Length: 0
User-Agent: Mojolicious (Perl)
Accept-Encoding: gzip

This is the default behaviour of most (modern) browsers when dealing with 
HTML forms.

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to