PDA

View Full Version : HTTP.SubmitSecure() gives error: The connection with the server was reset


dalebunny
09-13-2006, 08:53 AM
When I use HTTP.SubmitSecure() I get the following error message from HTTP.GetHTTPErrorInfo(): The connection with the server was reset

The status from HTTP.GetHTTPErrorInfo() is 200.

Application.GetLastError() returns error number 2502: Could not open request.

StatusDlg.Show() shows:
Connected to server.
Saving

Here is a fragment of the code:
myvalues = {};
myvalues.invite_id = "85";
myvalues.email = "email@test.com";
myvalues.username = SessionVar.Expand("%UserName%");
myvalues.password = SessionVar.Expand("%PassWord%");
sResult = HTTP.SubmitSecure("https://www.domain.com/register.jsp", myvalues, SUBMITWEB_GET, 10, 80);

Doing the same thing with HTTP.Submit() and an http address works fine.

Submitting the equivalent request from a browser works fine. The page being requested exists and functions.

Any help on this would be greatly appreciated!

Thanks

pww
09-13-2006, 11:01 AM
I may think of two possible reasons - communication is blocked, or data being sent is not what you think

For the first, try to disable your firewall or allow your app in it.
For the second, try with some http sniffer to see what's exchanged. Logging requests on the server side may also help.

dalebunny
09-13-2006, 11:05 AM
Eventually, I set the timeout to 30 and that solved the problem. Of course, I don't know why this should make a difference.

Doing the equivalent request from a browser only takes a second or so, but from within SF7 it takes a very long time. Why is this?