Menu

#339 DEFAULT_HEADERS "Source Line is Too Long" error

Inconvenience
open
nobody
5
2013-02-14
2008-03-04
No

After recording a script, the SCL generated produces source code that will not compile due to the source line being too long. Only occurs when the contents of the DEFAULT_HEADER string is sufficiently long.

Example:

CONSTANT DEFAULT_HEADERS = "Host: www.google.com^J" &
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; EmbeddedWB 14,52 from: http://www.bsalsa.com/ EmbeddedWB 14.52; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)"

Workaround:

Manually break the line into a multi-line statement

CONSTANT DEFAULT_HEADERS = "Host: www.google.com^J" &
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;" &
" EmbeddedWB 14,52 from: http://www.bsalsa.com/ EmbeddedWB 14.52; .NET CLR 1.1.4322; InfoPath.1;" &
" .NET CLR 2.0.50727)"

Discussion


Log in to post a comment.