[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTTPAPI http_url_post_raw application/x-www-form-urlencoded question
- To: ftpapi <ftpapi@xxxxxxxxxxxxx>
 
- Subject: HTTPAPI http_url_post_raw application/x-www-form-urlencoded question
 
- From: Michael <mikejbwhoo@xxxxxxxxx>
 
- Date: Mon, 10 Apr 2006 15:46:07 -0700 (PDT)
 
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=cqTZZKzOZHUj05KPtIDk2yTtw5+HEQgV1OXmwSnrK/MUhL0SkT5SUNiS3LOUuSqs+zJxCXob7u7ow63rAU+dx7sNJ4b+VJ8GNR/sk/uj0gh1g/6EQ0CmQtmXtlfchxhJEFoGSVTLQ8WDEvY7FtUOLUgZtaCcVvFIEOlMiTjcoik=  ;
 
- Reply-to: ftpapi@xxxxxxxxxxxxx
 
- Sender: owner-ftpapi@xxxxxxxxxxxxx
 
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
		
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.