[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit AuthorizationRequiredException.java,1.5,1
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2002-11-08 01:59:41
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory usw-pr-cvs1:/tmp/cvs-serv31885/src/com/meterware/httpunit
Modified Files:
AuthorizationRequiredException.java WebRequestSource.java
Log Message:
Send URL parameters with no-action form submission
Index: AuthorizationRequiredException.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/AuthorizationRequiredException.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- AuthorizationRequiredException.java 26 Nov 2001 14:20:12 -0000 1.5
+++ AuthorizationRequiredException.java 8 Nov 2002 01:59:37 -0000 1.6
@@ -64,7 +64,7 @@
/**
- * Returns the name of the <a href="ftp://ftp.isi.edu/in-notes/rfc2617.txt">authentication scheme</a>.
+ * Returns the name of the <a href="http://www.freesoft.org/CIE/RFC/Orig/rfc2617.txt">authentication scheme</a>.
**/
public String getAuthenticationScheme() {
return _scheme;
Index: WebRequestSource.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/WebRequestSource.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- WebRequestSource.java 8 Oct 2002 14:01:10 -0000 1.18
+++ WebRequestSource.java 8 Nov 2002 01:59:38 -0000 1.19
@@ -264,7 +264,8 @@
* Gets all parameters from a URL
**/
private String getParametersString() {
- final String url = trimFragment( getDestination() );
+ String url = trimFragment( getDestination() );
+ if (url.trim().length() == 0) url = getBaseURL().toExternalForm();
if (url.startsWith( "javascript:" )) return "";
final int questionMarkIndex = url.indexOf("?");
if (questionMarkIndex >= 1 && questionMarkIndex < url.length() - 1) {
|