Sample code now don't work for me - WeOnlyDo Discussion board

Sample code now don't work for me (wodWebServer / wodWebServer.NET)

by SKc, Saturday, December 01, 2007, 05:43 (6201 days ago)

I have posted previously the Subject: FormPostAdd & Request:Body in this forum. The below sample works at that time:

wodHttp1.Request.FormPost.Add Username , joe
wodHttp1.Request.FormPost.Add Password , joe
wodHttp1.Post http://www.weonlydo.com/HttpDLX/Demo/TestFormPost.asp

However I tried again today and now it does not work. As far as I know there is not much difference to my environment. Using same computer, same programming language - namely Progress OE10. But now it does not work. Error-code: 10053 - The current connection has been aborted.

The documentation says it would produce the following:-
POST /HttpDLX/Demo/TestFormPost.asp HTTP/1.0
Host: www.weonlydo.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 25

Username=joe&Password=j

When I display Request:body, I do see only Username=joe&Passowrd=j . Is there a way to verify it produces all the above?

The previous version I had used successfully was wodHttpDLX 1.5.4. However the version I am using now is 1.5.5.
Note that I have no problem in accessing a .asp on a local LAN. Problem arise when try to access an Internet website.
Any clue as to what could be wrong?

Re: Sample code now don't work for me

by woddrazen, Saturday, December 01, 2007, 11:01 (6200 days ago) @ SKc

Skc,


Did you try sample in component samples folder: VBComponent6. Post data to the server? That sample is working for me without an issue.

Can you perhaps try it on some other machine?

I'm using latest 1.5.6.156 version of wodHttpDLX.

Let us know how it goes.


Drazen

Re: Sample code now don't work for me

by Skc, Saturday, December 01, 2007, 15:52 (6200 days ago) @ woddrazen

Tried another computer running Win2k and downloaded and installed wodHttpDLX version 1.5.6.149 - this seems to be latest. Disable Norton.

Unfortunately same error 10053 occurs.

I cannot try the VBComponent6 as I am not using Visual Basic and don't have any VB environment. Am using PROGRESS OE10. It had worked about 2 months ago. RIght now it does not work if host is external but it still works in LAN environment. One thing I have changed since 2 months ago is the router's auto-IP-address range but I think that shouldn't affect..

Re: Sample code now don't work for me

by woddrazen, Saturday, December 01, 2007, 16:14 (6200 days ago) @ Skc

Skc,


Which programming language are you using?


Drazen

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 05:35 (6199 days ago) @ woddrazen

I am using PROGRESS 4GL Version 10 www.progress.com/openedge. It is a high-level language similar to Powerbuilder.
Connect does not return any error but Post or Get returns error.
Sample PROGRESS code:

define variable mcom as com-handle.
CREATE WeOnlyDo.wodHttpDLXCom mcom.
mcom:Blocking = TRUE.
mcom:Timeout = 15.

mcom:Hostname = www.weonlydo.com .
mcom:Request:URI = /HttpDLX/Demo/TestFormPost.asp .
mcom:CONNECT.
MESSAGE mcom:URL skip
mcom:Lasterror mcom:LasterrorText
VIEW-AS ALERT-BOX.
/* No-error at this point */

mcom:Request:FormPost:Add ( Username , joe ) .
mcom:Request:FormPost:Add ( Password , joe ).
mcom:Post . /*Error 10053 */

I have reloaded WodHttpDLX 1.5.4 version but there is no difference. How did I get it working 2 months ago? Strange.

Re: Sample code now don't work for me

by SKc, Monday, December 03, 2007, 05:38 (6199 days ago) @ Skc


mcom:Post . /*Error 10053 */

This line should be mcom:Post.

By the way- is there a way to correct posting after submission? Thanks.

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 05:41 (6199 days ago) @ SKc

Sorry should be:
mcom : POST

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 08:45 (6198 days ago) @ Skc

Hullo guys

I am getting limited success! When I enter websites which are local to my country, I am able to GET successfully.

But if the website is outside of my country like www.weonlydo.com or www.google.com, it fails.

I am using broadband through my router/modem that is connected to my broadband service provider. I think there is a proxy server at their end.

Whether it is local or international website should not matter? what do you think?

Re: Sample code now don't work for me

by wodDamir, Monday, December 03, 2007, 09:03 (6198 days ago) @ Skc

Hi Skc,

Can you do to the same using IE or FireFox? What happens?

Do you have some limit from your ISP? If you can't access sites that are from different country then yours, then it could be that this is an ISP or a firewall issue.

Regards,
Damba

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 09:24 (6198 days ago) @ wodDamir

There is no limit to my ISP account. Using Firefox or IE, I can access all sites. For example, using Firefox I am able to access your site, this forum and download your wodHttpDLX.com - there is no problem.

Re: Sample code now don't work for me

by wodDamir, Monday, December 03, 2007, 09:55 (6198 days ago) @ Skc

Skc,

And are you using Proxy server for that purpose? Can you verify IE settings?

Also, please check firewalls, even the build-in Windows firewall could cause problems.

Regards,
Damba

Re: Sample code now don't work for me

by SKc, Monday, December 03, 2007, 10:25 (6198 days ago) @ wodDamir

The ISP provider had given the following proxy server: proxy2.singnet.com.sg

However, both my IE6 and Firefox 2 Connection settings are currently set at Auto-detect.

Windows Firewall if Off because I have Norton Internet Security 2005.
Whether Norton is ON or Temporarily Off does not seem to make any difference.

Mote that a wodHttp:Connect method (to eg. www.weonlydo.com) does not return any error. But a GET does.

Re: Sample code now don't work for me

by wodDamir, Monday, December 03, 2007, 10:29 (6198 days ago) @ SKc

Skc,

Can you please try setting Proxy in wodHttpDLX?

You can set parameters like ProxyType, ProxyHostName, ProxyLogin, ProxyPassword and ProxyPort.

You should set those properties to the values received from the ISP.

Please let us know if that worked.

Regards,
Damba

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 15:50 (6198 days ago) @ wodDamir

Hullo wodDamir

Added the following lines:-
mcom:ProxyType = 3.
mcom:proxyHostname = proxy2.singnet.com.sg .
mcom:proxyPort = 8080.

SUCCESS!!
I did try this yesterday but my mistake was to set mcom:Port = 80 instead of mcom:proxyPort = 8080 (as given by my ISP).

Thank you for your patience. Appreciate it.

Just a further question - can this proxyHostname be automatic ie. can it be auto-detected by wodHttpDLX? Is there anything I can set elsewhere, maybe in IE, that wodHttpDLX can pick up from? Not critical but nice to have. [:happy:]

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 15:54 (6198 days ago) @ Skc

The previous posting:
ALl smiley should actually read :P

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 15:56 (6198 days ago) @ Skc

Sorry I don't know how to get rid of the smiley

All smileys should read : P (ie : followed by P )


Re: Sample code now don't work for me

by wodDamir, Monday, December 03, 2007, 16:00 (6198 days ago) @ Skc

Skc,

Great! I'm glad that it now works for you.

As for your question, perhaps setting ProxyType to 6 (ProxyWindows). This setting should use registry settings (the settings that are used in IE). Perhaps that would work.

As for the smiley's, perhaps the easiest way to avoid that is to check Disable smileys in message checkbox available when writing replies.

Regards,
Damba

Re: Sample code now don't work for me

by Skc, Monday, December 03, 2007, 16:12 (6198 days ago) @ wodDamir

Skc,
As for your question, perhaps setting ProxyType to 6 (ProxyWindows). This setting should use registry settings (the settings that are used in IE). Perhaps that would work.
Regards,
Damba

Hullo Damba

I just did that. Great - it works! Just 1 line. Thank you for your support. I have not purchased wodHttpDLX yet but should do so shortly. Thanks again.

Best Regards