login about faq

i'm using the HTTP activeX componenent to do a PostUrlEncoded with UseBgThread=1 i want to use the data that i'm getting while waiting for the next data ( it's tweeter stream, so virtually infinite ) i tried ( in VB6 )

Do While (http.BgTaskRunning = 1)
    '  Show the events in the event log that have accumulated so far...
    Dim n As Long
    n = http.EventLogCount
    If (n > 0) Then
        Dim j As Long
        For j = 0 To n - 1
            Debug.Print http.EventLogName(j) & ": " & http.EventLogValue(j) & vbCrLf
        Next
        'DoEvents
        http.ClearBgEventLog
       Dim response As New ChilkatHttpResponse
        Set response = http.BgResponseObject()
        Debug.Print "BgResultString >> " & response.bodyStr
    End If
 Loop

( i also triend several variation on this like using a GET and getting the response as a String ) it does not work, and i have to restart visual studio if i use a breakpoint

asked Dec 03 '12 at 01:02

vortexius's gravatar image

vortexius
6225

edited Dec 03 '12 at 01:23


Unfortunately, the Chilkat HTTP API was not designed with this in mind. We've investigated adding this capability, but it's not a quick-and-easy feature to add. Something like this may be added in a future release, but not in the short term.

link

answered Dec 03 '12 at 09:13

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

even that, when i use

http.SessionLogFilename = "httpSessionLog.txt"

the content "retreived so far" is indeed recorded in this file ?

(Dec 03 '12 at 09:44) vortexius

Yes. Also, I checked and the logging occurs such that each update is written by opening, writing, and closing the file. The reason it's difficult to provide the information via the API (without more extensive work), is that internally the response is received in a byte-oriented streaming fashion such that the chunk boundaries are not known where it's needed. (In other words, it's difficult to get just the data.)

(Dec 03 '12 at 19:00) chilkat ♦♦

thanks for the quick replies, i tried with the socket component, it seem going good so far

(Dec 04 '12 at 09:33) vortexius
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×186
×96
×22
×8
×2

Asked: Dec 03 '12 at 01:02

Seen: 1,761 times

Last updated: Dec 04 '12 at 09:33

powered by OSQA