Hello Jerry,

> I checked this and both urlA and urlB are correct.  I got them by  visiting 
> the website with my browser, then copying and pasting each of them into  my 
> standalone Java application.

You can *not* get the target URL of a form POST by copying and pasting the
URL from a browser. You get the URL of the form POST by looking at the HTML
source code of the page that provides the form. There, you search for a tag

<form method="POST" target="*this*is*the*URL*to*POST*to">

In most cases, the server will send a redirect in response to the POST. The
browser will only show the address of the page to which you are redirected,
not the address to which you have to send the POST.

> In addition, I suspect that if urlB were wrong, my GetMethod  would not have 
> worked because it uses the same values for urlA and  urlB, yet it works 
> perfectly.

GET and POST are two completely different things. GET is a read operation,
while POST more often than not implies some kind of write. Imagine a file
system: reading the directory is one thing, but you don't create files by
writing to the directory. You create files by calling a create operation
with the name of the new file. Then, the directory content changes.

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to