New topic: 

cloning HTTPSecureSocket

<http://forums.realsoftware.com/viewtopic.php?t=34285>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        paulhanson          Post subject: cloning 
HTTPSecureSocketPosted: Tue Jun 15, 2010 11:50 am                         
Joined: Wed Jan 24, 2007 6:03 pm
Posts: 16                I am connecting to a secure connection using the 
following code :

Code:myHttpSecureConnection = new HttpSecureSocket
form = new Dictionary

form.value( "uid" ) = username
form.value( "password" ) = password
  
myHttpSecureConnection.setFormData form

// Log in using the username and password supplied above
data = myHttpSecureConnection.post(URL,20) // Synchronous Request with 20 sec. 
timeout

// Set the cookies up for future connections without having to log in
for i as Int32 = 0 to 
myHttpSecureConnection.pageHeaders.nameCount("Set-Cookie")-1
 cookie = myHttpSecureConnection.pageHeaders.value("Set-Cookie",i)
 myHttpSecureConnection.requestHeaders.appendHeader "cookie",cookie
next


I want to be able to clone myHttpSecureConnection so I can asynchronously post 
requests and process the data when it is received (I'd like to have up to 6 
connections open at once).  How can I do this.  I tried copying the 
requestHeaders, but that didn't seem to be sufficient.

Any help would be great.

Thanks,

Paul   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to