fbpx

HttpWebRequest method called 'Method'

More
1 year 1 month ago #1 by Leigh Anderson
HttpWebRequest method called 'Method' was created by Leigh Anderson
Hi

Am in the process of trying to get our application compiling in X# and have a problem.

I'm trying to make use of the System.Net.HttpWebRequest class.
One of its methods is called 'Method' and when I try to use:

oWebReq:Method:="POST"

I get:

error XS9002: Parser: mismatched input ':' expecting EOS
error XS9002: Parser: mismatched input ':='

Presumably this is because its expecting a Method definition?
Is there a way around that?

Thanks

Leigh

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #2 by Phil Hepburn
Replied by Phil Hepburn on topic HttpWebRequest method called 'Method'
does '@@' in front of Method work ?

This is usually the good advice from our friend Karl - sorry for jumping in Karl ;-0)

Cheers,
Phil.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #3 by Leigh Anderson
Replied by Leigh Anderson on topic HttpWebRequest method called 'Method'
Yep - that works perfectly.

Thanks for the quick reply.

Leigh

Please Log in or Create an account to join the conversation.