xsharp.eu • HttpWebRequest method called 'Method'
Page 1 of 1

HttpWebRequest method called 'Method'

Posted: Tue Dec 12, 2017 11:44 am
by leighproman
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

HttpWebRequest method called 'Method'

Posted: Tue Dec 12, 2017 11:47 am
by Phil Hepburn
does '@@' in front of Method work ?

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

Cheers,
Phil.

HttpWebRequest method called 'Method'

Posted: Tue Dec 12, 2017 11:53 am
by leighproman
Yep - that works perfectly.

Thanks for the quick reply.

Leigh