I am trying to use HTTPAPIR4 to read a web page but when I do with the
content-type below the program hangs. If I send the default content-type
then it deosn't hang, but doesn't return the correct result. The only
thing to do is "go tcpadm" and kill the socket that is in a "close-wait"
state, the program returns with the correct result.
rc = http_url_post_raw(Http + WebSite + cgiScript
:%addr(szFormValue) :%len(%trimr(szFormValue))
:1 :%paddr('INCOMING') :10
:'Mozilla 1.0' :'application/x-www-form-urlencoded');
If rc <> 1;
msg = http_error;
dsply msg;
EndIf;
szFormValue = 'HTMLVersion=5.0&loc=en_US&Requester=UPSHome&' +
'tracknum=' + %Trim(TrackingNo) + '&' +
'AgreeToTermsAndConditions=yes&ignore=&' +
'track=';
Thanks for any help!
Michael