Re: keep-alive setRequestHeader in httpSocket

2007-05-17 Thread Chris Little
on 5/16/07 8:10 PM, Carlo Rubini at [EMAIL PROTECTED] wrote: > I'm experiencing some strange behavior when I set a keep-alive > HeaderRequest to download a file: at the end of the downloading process > the PageReceived event may not get triggered. > > For instance, dowloading Thunderbird, the pag

keep-alive setRequestHeader in httpSocket

2007-05-16 Thread Carlo Rubini
I'm experiencing some strange behavior when I set a keep-alive HeaderRequest to download a file: at the end of the downloading process the PageReceived event may not get triggered. For instance, dowloading Thunderbird, the pageReceived event is triggered, but downloading GoogleEarth it is not t

Re: HTTPSocket

2007-04-13 Thread Carlo Rubini
>On 4/12/07, Carlo Rubini <[EMAIL PROTECTED]> wrote: > > Does anybody have the necessary code to ping a site? > >"Dennis Birch" <[EMAIL PROTECTED]> wrote: >Somebody released a set of ICMP classes, which is what's required for >pinging. I'd search the archives for ICMP and see if it shows up. Than

Re: HTTPSocket

2007-04-13 Thread jis
ould not be better pinging a site. > Does anybody have the necessary code to ping a site? > > Thanks, > >> Sub ConnectionAvailable()As String >> >> dim http as new HTTPSocket >> http.yield = true >> dim temp as String = ht

Re: HTTPSocket

2007-04-12 Thread Dennis Birch
On 4/12/07, Carlo Rubini <[EMAIL PROTECTED]> wrote: > Does anybody have the necessary code to ping a site? Somebody released a set of ICMP classes, which is what's required for pinging. I'd search the archives for ICMP and see if it shows up. ___ Unsubs

Re: HTTPSocket

2007-04-12 Thread Carlo Rubini
necessary code to ping a site? Thanks, >Sub ConnectionAvailable()As String > > dim http as new HTTPSocket > http.yield = true > dim temp as String = http.get("http://www.yoursite.com";, 5) >if len(temp) > 0 then > return temp

Re: HTTPSocket

2007-04-11 Thread jis
Sub ConnectionAvailable()As String dim http as new HTTPSocket http.yield = true dim temp as String = http.get("http://www.yoursite.com";, 5) if len(temp) > 0 then return temp else // No connection end if Johan Sim

HTTPSocket

2007-04-11 Thread Dr Bob Jansen
Can anyone point me to an example of using the HTTPSocket to pull a file from a web server and access its contents in RB code. I am hoping to avoid downloading it to a file and instead have the contents allocated to an RB variable. The documentation of HTTPSocket leaves a bit to be desired

Re: NTLM & HTTPSocket?

2007-03-08 Thread Patrick Salo
e the Basic Authentication Scheme in HTTPSocket. > > >> From: Patrick Salo <[EMAIL PROTECTED]> >> Reply-To: REALbasic NUG >> Date: Wed, 7 Mar 2007 21:21:18 -0800 >> To: REALbasic NUG >> Subject: NTLM & HTTPSocket? >> >> I'm just che

Re: NTLM & HTTPSocket?

2007-03-08 Thread Roger Meier
I have successfully used this: http://ntlmaps.sourceforge.net/ It runs in Python and converts Basic Authentication to NTLM Authentication. I.e. you can use the Basic Authentication Scheme in HTTPSocket. > From: Patrick Salo <[EMAIL PROTECTED]> > Reply-To: REALbasic NUG > Date:

NTLM & HTTPSocket?

2007-03-07 Thread Patrick Salo
I'm just checking to see if anyone has found or worked out a solution to doing NTLM authentication via the HTTPSocket? I'm trying to authenticate to some IIS servers and thus far the Basic authentication has been unsuccessful. =( Many thanks in advance

HTTPSocket: upload getting reset by peer

2007-02-04 Thread Guyren Howe
I'm trying to do a HTTP upload. I send the data into the Ether and then... nothing. No error. Just nothing happens. By running a sniffer, I've been able to determine that the result is a Closed by peer. I'm able to fetch HTML in this application just fine. And I've been uploading just fi

Re: HTTPSocket timeout

2006-12-10 Thread Aude FRONT
the timeout parameter. I've sent a bug report few weeks ago about the incomplete documentation about httpSocket: http://www.realsoftware.com/feedback/viewreport.php?reportid=uyuffedr -- Aude FRONT BSD Concept ___ Unsubscribe or

HTTPSocket and proxy authentication

2006-12-07 Thread jda
I'm using an HTTPSocket to access information behind an authenticating proxy server. When I send a query I receive an HTTPStatus 407 (proxy authentication required). I then send back the username:password in base64 encoding, as outlined in the RFC. But that doesn't work -- I just g

Re: HttpSocket and cpu usage

2006-11-19 Thread Fargo Holiday
Ok... so... If I do it the way listed below, everything is cool. If, however, I'm waiting for a result, then it goes back to the way it was before. So, it seems that it has nothing to do with waiting for a string, but rather the result in general. So this: dim h as new HTTPSocket

Re: HttpSocket and cpu usage

2006-11-19 Thread Mark Lubratt
Immutable strings.(?) Mark On Nov 19, 2006, at 1:48 PM, Fargo Holiday wrote: Solved it! I was thinking to myself how odd it was to try and save that data to a string. So, I added this to a button: dim h as new HTTPSocket dim data as FolderItem data = GetFolderItem("downer.rar&quo

Re: HttpSocket and cpu usage

2006-11-19 Thread Fargo Holiday
Solved it! I was thinking to myself how odd it was to try and save that data to a string. So, I added this to a button: dim h as new HTTPSocket dim data as FolderItem data = GetFolderItem("downer.rar") h.get("http://www.rpgportland.com/software/sounds.rar";, data)

Re: HttpSocket and cpu usage

2006-11-19 Thread Tomas Camin
is it normal that httpsocket.get uses a lot of resources? I'm trying to get a big file from the net simply doing: start new project Window1.open: dim h as new HTTPSocket dim data as string data=h.get(,5) // myfile=url to any big file on the net No matter if I put it in a thread

Re: HttpSocket and cpu usage

2006-11-19 Thread Fargo Holiday
ew project Window1.open: dim h as new HTTPSocket dim data as string data=h.get(,5) // myfile=url to any big file on the net No matter if I put it in a thread or not I get always between 50% and 70% cpu usage. I've got a 4Mbit connection and an iBook G4 1.

HttpSocket and cpu usage

2006-11-19 Thread Tomas Camin
Hi, is it normal that httpsocket.get uses a lot of resources? I'm trying to get a big file from the net simply doing: start new project Window1.open: dim h as new HTTPSocket dim data as string data=h.get(,5) // myfile=url to any big file on the net No matter if I put it in a t

Re: httpsocket post encoding

2006-10-29 Thread Mark Nutter
--- Tommy <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to send some data previously converted to utf-8 to a > > server using a post method. > > Basically this is what I'm doing: > > socket1.SetRequestHeader("Content-type","charset=UTF-8") > result=socket1.post(url,Audioscrobble

httpsocket post encoding

2006-10-29 Thread Tommy
Hi, I'm trying to send some data previously converted to utf-8 to a server using a post method. Basically this is what I'm doing: socket1.SetRequestHeader("Content-type","charset=UTF-8") result=socket1.post(url,Audioscrobbler.HTTPTIMEOUT) url is the utf-8 encoded url to send to ser

Re: HELP with HTTPSocket GET option!

2006-10-10 Thread Jonathon Bevar
, October 10, 2006 1:39 PM Subject: Re: HELP with HTTPSocket GET option! Hi Jonathon, I have placed following code in the action method of a push button. Dim http As New HTTPSocket Dim fi As FolderItem Dim result As Boolean fi = GetFolderItem("").Child("Down

Re: HELP with HTTPSocket GET option!

2006-10-10 Thread Markus Minihold
Hi Jonathon, I have placed following code in the action method of a push button. Dim http As New HTTPSocket Dim fi As FolderItem Dim result As Boolean fi = GetFolderItem("").Child("Downloadtest.txt") result = http.Get ("http://www.onclicksoftware.com/updates/

Re: HELP with HTTPSocket GET option!

2006-10-10 Thread Giles Williams
Hi Jonathan. The only workaround I could find to your problem when I had it in the past was to add an instance of HTTPSocket into the window, then use the same code as you have done. All you have to do then is to add something in the DownloadComplete Event that actually saves/moves the

HELP with HTTPSocket GET option!

2006-10-10 Thread Jonathon Bevar
right, I have this all in a Method. Method Name: checkVersion Parameters: proVersion as String, proVersionDate as String Return Type: Boolean Dim http as New HTTPSocket Dim strin As TextInputStream Dim f, wf As FolderItem Dim orgVersion, curVersion, curVersionDate as String //proVersion

Re: HTTPSocket troubles - SOLVED

2006-09-12 Thread Mark Lubratt
The problem I was having was actually orthogonal to this. Thanks! Mark On Sep 12, 2006, at 9:52 AM, Mark Lubratt wrote: Hello! I'm trying to use HTTPSocket to send a filled out form to my accounting system (SQL-Ledger). I construct a dictionary with all the proper parameters (p

HTTPSocket troubles

2006-09-12 Thread Mark Lubratt
Hello! I'm trying to use HTTPSocket to send a filled out form to my accounting system (SQL-Ledger). I construct a dictionary with all the proper parameters (params) and then use HTTPSocket.SetFormData (params) and HTTPSocket.Post to send the request. I get back a server erro

Re: HTTPSocket DownloadComplete

2006-08-17 Thread andrew
Ah! There's the problem - I wasn't using HTTPSocket.Get correctly. Passing a folderitem for saving data to makes the DownloadComplete event fire when the download is done. The correct usage for my application is: HTTPSocket.Get(Address, Folderitem) I really do hate small errors... two

Re: HTTPSocket DownloadComplete

2006-08-17 Thread Phil M
On Aug 17, 2006, at 12:52 PM, [EMAIL PROTECTED] wrote: Upon clicking my command button, which sets Yield to True and uses the Get method to download, I got this order of events firing: That is the problem... you are using "Yield". HTTPSocket has two methods to get files...

Re: HTTPSocket DownloadComplete

2006-08-17 Thread andrew
e, I made it as simple as possible. I made a window with a pushbutton, a progress bar, and an httpsocket. Absolutely nothing fancy. And I was surprised again. Upon clicking my command button, which sets Yield to True and uses the Get method to download, I got this order of events firing:

Re: HTTPSocket DownloadComplete

2006-08-16 Thread andrew
On Windows, using 2005r4, the DownloadComplete event fires once a file is downloaded. Normally, I can get it to work, too. This is the first time I've had trouble. I am convinced that this is a code problem - I just can't find the problem... Andrew Keller ___

RE: HTTPSocket DownloadComplete

2006-08-16 Thread Carlos M
event fires once a file is downloaded. Here's the example I used to test it: 1. Place an HTTPSocket on a window and a PushButton 2. On the HTTPSocket DownloadComplete event add: MsgBox "Done" 3. On PushButton action add: Dim url As String Dim f As FolderItem url = &qu

Re: HTTPSocket DownloadComplete

2006-08-16 Thread andrew
Well, given that it only took a day to write this code in the first place, I'm going to try writing it again, and then I'll see what's different. While I'm at it... Is the DownloadComplete event guaranteed to fire, even if there's an error? Would the error Error event fire before the Do

Re: HTTPSocket DownloadComplete

2006-08-16 Thread andrew
I'm using REALbasic 2005r4 on OSX, and the problem occurs on all platforms using any server and any download. It doesn't matter whether the application is a debug app or not. Andrew Keller On Aug 16, 2006, at 11:30 AM, John Balestrieri wrote: What platform are you running? Does it happen w

Re: HTTPSocket DownloadComplete

2006-08-16 Thread John Balestrieri
What platform are you running? Does it happen with files from a particular server, what about files downloaded from another server? Does changing the download location change anything, depending on which server you are downloading from? Maybe it's permissions issue if you are running on OS

Re: HTTPSocket DownloadComplete

2006-08-16 Thread andrew
I've got a weird problem with my HTTPSocket. First of all, this all worked just fine before I changed things, but now, it seems like the DownloadComplete event isn't firing. The application just sits there hogging processor time, not writing to the hard drive, not using any ex

HTTPSocket DownloadComplete

2006-08-15 Thread andrew
I've got a weird problem with my HTTPSocket. First of all, this all worked just fine before I changed things, but now, it seems like the DownloadComplete event isn't firing. The application just sits there hogging processor time, not writing to the hard drive, not using any ex

Re: Downloading through HTTPSocket

2006-08-10 Thread Joe Huber
At 9:49 PM -0400 8/9/06, Phil M wrote: I don't care if you agree with Apple's current policy or not, the fact is that Apple has given in to the file extension as the most widely accepted file identification method. Granted, when a file has a Type and Creator, it trumps the file extension... an

Re: Downloading through HTTPSocket

2006-08-09 Thread Sven E Olsson
On 2006-08-10, at 5:07 AM, Thom McGrath wrote: Well, trying filing a report/request again. Now that Joe doesn't work at REAL anymore, I think their biggest advocate of File Type/ Creator codes is now 3rd-party. (Sorry Joe, nothing personal) In reality, REALbasic is still sticking to old-wor

Re: Downloading through HTTPSocket

2006-08-09 Thread Thom McGrath
Well, trying filing a report/request again. Now that Joe doesn't work at REAL anymore, I think their biggest advocate of File Type/Creator codes is now 3rd-party. (Sorry Joe, nothing personal) In reality, REALbasic is still sticking to old-world standards. It's not a matter of what is belie

Re: Downloading through HTTPSocket

2006-08-09 Thread Sven E Olsson
On 2006-08-10, at 3:49 AM, Phil M wrote: On Aug 9, 2006, at 6:39 PM, Joe Huber wrote: Sot it look that the OS X NOT longer create full Mac experience. Yep, that's exactly right. There are a lot of Next refugees at Apple and so even Apple doesn't always provide a good Mac experience. :-)

Re: Downloading through HTTPSocket

2006-08-09 Thread Phil M
On Aug 9, 2006, at 6:39 PM, Joe Huber wrote: Sot it look that the OS X NOT longer create full Mac experience. Yep, that's exactly right. There are a lot of Next refugees at Apple and so even Apple doesn't always provide a good Mac experience. :-) Very few files created in OS X 10.3 and h

Re: Downloading through HTTPSocket

2006-08-09 Thread Mark Nutter
--- Craig Hoyt <[EMAIL PROTECTED]> wrote: > In my current project I incorporate a check for updates and the > > ability to download an update via HTTPSocket. When testing > earlier I > used a small text file. Now I've posted the actual file in zip > > form

Re: Downloading through HTTPSocket

2006-08-09 Thread Joe Huber
Sot it look that the OS X NOT longer create full Mac experience. Yep, that's exactly right. There are a lot of Next refugees at Apple and so even Apple doesn't always provide a good Mac experience. :-) OSX is NOT the epitome of an ideal Mac experience. :-) Regards, Joe Huber

Re: Downloading through HTTPSocket

2006-08-09 Thread Sven E Olsson
On 2006-08-10, at 12:04 AM, Joe Huber wrote: I'm not sure the type and creator should be set at all. Especially since type and creator are obsolete now. I agree. And setting the type and creator is the only option, and not that big of a deal. Setting the Type and Creator is still essent

Re: Downloading through HTTPSocket

2006-08-09 Thread Joe Huber
I'm not sure the type and creator should be set at all. Especially since type and creator are obsolete now. I agree. And setting the type and creator is the only option, and not that big of a deal. Setting the Type and Creator is still essential to providing the full Mac experience. Regar

Re: Downloading through HTTPSocket

2006-08-09 Thread Phil M
27; immediately fixes the file. My application does not explicitly set the type and creator so RB is setting it when I pass the folderitem to the HTTPSocket. Setting to nil strings doesn't seem to allow the change. Setting to '' did fix the problem. Is there a something I s

Re: Downloading through HTTPSocket

2006-08-09 Thread Craig Hoyt
g the files type and creator in 'Resourcer' immediately fixes the file. My application does not explicitly set the type and creator so RB is setting it when I pass the folderitem to the HTTPSocket. Setting to nil strings doesn't seem to allow the change. Setting to '&#

Re: Downloading through HTTPSocket

2006-08-09 Thread Phil M
On Aug 9, 2006, at 2:27 PM, Craig Hoyt wrote: In my current project I incorporate a check for updates and the ability to download an update via HTTPSocket. When testing earlier I used a small text file. Now I've posted the actual file in zip format. My FTP client shows the file as a P

Re: Downloading through HTTPSocket

2006-08-09 Thread Phil M
On Aug 9, 2006, at 2:27 PM, Craig Hoyt wrote: In my current project I incorporate a check for updates and the ability to download an update via HTTPSocket. When testing earlier I used a small text file. Now I've posted the actual file in zip format. My FTP client shows the file as a P

Downloading through HTTPSocket

2006-08-09 Thread Craig Hoyt
In my current project I incorporate a check for updates and the ability to download an update via HTTPSocket. When testing earlier I used a small text file. Now I've posted the actual file in zip format. My FTP client shows the file as a PC zip archive and is the correct size. W

Re: HTTPSocket Encodings

2006-08-04 Thread GregO
On Aug 4, 2006, at 10:06 am, [EMAIL PROTECTED] wrote: On Aug 04, 2006, at 13:42 UTC, GregO wrote: Thank you everyone that replied. Yes indeed, I was using the wrong encoding for the downloaded text (It should have been ISOLatin1). Last dumb question. How do I write this string in a BinaryStr

Re: HTTPSocket Encodings

2006-08-04 Thread joe
On Aug 04, 2006, at 13:42 UTC, GregO wrote: > Thank you everyone that replied. Yes indeed, I was using the wrong > encoding for the downloaded text (It should have been ISOLatin1). > > Last dumb question. How do I write this string in a BinaryStream and > have it retain it's encoding. To be p

Re: HTTPSocket Encodings

2006-08-04 Thread GregO
Thank you everyone that replied. Yes indeed, I was using the wrong encoding for the downloaded text (It should have been ISOLatin1). Last dumb question. How do I write this string in a BinaryStream and have it retain it's encoding. To be perfectly honest, I'm writing to a custom Lingua file

Re: HTTPSocket Encodings

2006-08-04 Thread Sven E Olsson
On 2006-08-04, at 2:45 PM, GregO wrote: You know, I didn't even try it under Windoze... in my environment, the app will probably never run on anything but OS X. I'll see what I get. But on Mac OS X, the text is definitely nil encoded. I'll let you know how the PC version goes. Greg But

Re: HTTPSocket Encodings

2006-08-04 Thread GregO
Ok, so what's the RB equivalent of ISO-8859-1 encoding? Greg On Aug 3, 2006, at 6:38 pm, Walter Purvis wrote: I don't get an empty string when I run your code using 2006r3 on XP. It doesn't make sense that you would get an empty string -- it's either a weird bug or you had some other unacc

Re: HTTPSocket Encodings

2006-08-04 Thread Mark Nutter
et > you know how the PC version goes. As you get it from the server, it will be nil encoded, because the encoding is specified in one of the HTTP headers, not in the network stream itself, and the HTTPSocket does not automatically read the header and define the corresponding encoding for yo

Re: HTTPSocket Encodings

2006-08-04 Thread GregO
You know, I didn't even try it under Windoze... in my environment, the app will probably never run on anything but OS X. I'll see what I get. But on Mac OS X, the text is definitely nil encoded. I'll let you know how the PC version goes. Greg On Aug 3, 2006, at 6:38 pm, Walter Purvis wrote

Re: HTTPSocket Encodings

2006-08-03 Thread joe
On Aug 03, 2006, at 20:59 UTC, GregO wrote: > str = h.Post("http://babelfish.altavista.com/babelfish/tr",30) > str = DefineEncoding(s,encodings.UTF8) > str = ConvertEncoding(s,encodings.MacRoman) > > str is empty after the conversion. What is "s" here? You didn't show us where th

RE: Re: HTTPSocket Encodings

2006-08-03 Thread Walter Purvis
I don't get an empty string when I run your code using 2006r3 on XP. It doesn't make sense that you would get an empty string -- it's either a weird bug or you had some other unaccounted for problem. As Mars said, though, the text is being returned to you as text/html with ISO-8859-1 encoding. _

Re: Re: HTTPSocket Encodings

2006-08-03 Thread Dennis Birch
Didn't you say in your first message in this thread that the string you're getting back from the HTTP socket is nil-encoded? If so, why are you defining it as UTF-8? On 8/3/06, GregO <[EMAIL PROTECTED]> wrote: Yup. Doin too many things at once. Try it like this... (they were originally just "s"

Re: HTTPSocket Encodings

2006-08-03 Thread GregO
On Aug 3, 2006, at 5:07 pm, Deane Venske wrote: Hi There, str = h.Post("http://babelfish.altavista.com/babelfish/tr",30) str = DefineEncoding(s,encodings.UTF8) str = ConvertEncoding(s,encodings.MacRoman) str is empty after the conversion. Shouldn't the "s" above in DefineEncod

Re: HTTPSocket Encodings

2006-08-03 Thread Deane Venske
Hi There, str = h.Post("http://babelfish.altavista.com/babelfish/tr",30) str = DefineEncoding(s,encodings.UTF8) str = ConvertEncoding(s,encodings.MacRoman) str is empty after the conversion. Shouldn't the "s" above in DefineEncoding and ConvertEncoding be "str"? Regards, Deane

Re: HTTPSocket Encodings

2006-08-03 Thread GregO
diacriticals (which is what I'm getting back from HTTPSocket) to UTF8 and then to MacRoman results in an empty string? I wouldn't expect there to be a difference. I can't answer that question, but why are you trying to convert text with an unknown encoding in the first place? Yo

Re: HTTPSocket Encodings

2006-08-03 Thread Mars Saxman
from HTTPSocket) to UTF8 and then to MacRoman results in an empty string? I wouldn't expect there to be a difference. I can't answer that question, but why are you trying to convert text with an unknown encoding in the first place? You should define its encoding to whatever the

HTTPSocket Encodings

2006-08-03 Thread GregO
Can anyone tell me why converting the text of an editfield containing diacriticals (which starts as UTF8) to MacRoman works just fine, but converting a nil encoded string which contains a few diacriticals (which is what I'm getting back from HTTPSocket) to UTF8 and then to MacRoman re

Re: HTTPSocket problems

2006-07-03 Thread Harrie Westphal
On Jul 3, 2006, at 4:05 PM, Craig Hoyt wrote: This should be in the LR? From the Language Reference manual: "If a FolderItem is passed, the data will be downloaded to that file. The DownloadComplete event will execute when the response data has been retrieved." Notice that is says it w

Re: HTTPSocket problems

2006-07-03 Thread Craig Hoyt
Let me answer my own question. I finely found what error 1 is. I searched the LR several times last night and came up empty but this morning I found the reference. This lead me to a solution. Error 1 is unable to make a file, so I define my folderitem as f=DeskTopFolder.Child(dlName). Where

Re: HTTPSocket problems

2006-07-03 Thread Tim Murphy
Folder item? Why not just download the file the way the rb example does, Make a TCP socket. Set it to httpsocket. Call it with: socket1.get("http://mydomain/Updates/myfile";) Then in the socket1 PageReceived event, you can access the entire download to compare against your curre

Re: HTTPSocket problems

2006-07-03 Thread Sven E Olsson
On 2006-07-03, at 7:27 PM, Scott Wagner wrote: The error 1 usually means the socket is busy. Try using a different. socket. Like this. have 2 http sockets if the update is needed then use the second one. and instead of a text file use a header. this way its all backend it will move faster.

Re: HTTPSocket problems

2006-07-03 Thread Peter Truskier
Does that work? --Peter On Jul 3, 2006, at 9:32 AM, Craig Hoyt wrote: I'm trying to implement on of those 'check the web for newer version' routines. I have a text file that contains just a version number on my web site. I use HTTPSocket to retrieve this file and compare aga

Re: HTTPSocket problems

2006-07-03 Thread Scott Wagner
instead of waiting for the yeild. On Jul 3, 2006, at 11:32 AM, Craig Hoyt wrote: I'm trying to implement on of those 'check the web for newer version' routines. I have a text file that contains just a version number on my web site. I use HTTPSocket to retrieve this fil

HTTPSocket problems

2006-07-03 Thread Craig Hoyt
I'm trying to implement on of those 'check the web for newer version' routines. I have a text file that contains just a version number on my web site. I use HTTPSocket to retrieve this file and compare against the current version of my app. All this does work. If my app has

Re: HTMLViewer, HTTPSOcket questiion

2006-06-18 Thread Stefan P.
preceding in the correct place, which is not necessarily a good assumption). (I couldn't figure out how to work in PageReceived.) Any additional advice? Barry, You must add an HTTPSocket control to a window (add a TCPSocket and change its Super to HTTPSocket) and then check the PageReceived even

RE: HTMLViewer, HTTPSOcket questiion

2006-06-18 Thread Carlos M
correct place, which is not > necessarily a good assumption). (I couldn't figure out how to > work in PageReceived.) Any additional advice? Barry, You must add an HTTPSocket control to a window (add a TCPSocket and change its Super to HTTPSocket) and then check the PageReceived

Re: HTMLViewer, HTTPSOcket questiion

2006-06-18 Thread Deane Venske
t you to the page, removing all get headers. When I tried it the HTTPSocket did have valid content. It said that it doesn't understand the headers sent by our "browser" but that's because we have a raw HTTPSocket, so I'm guessing that some formating is going to ne

Re: HTMLViewer, HTTPSOcket questiion

2006-06-18 Thread Barry Traver
Carlos, I presume that URL is redirecting to a different page. On the HTTPSocket check (on PageReceived) the httpStatus code to see if you get a 302 or 301 redirect code - if yes, then check the headers for the new URL location. I tried adding the following to my code: Dim Temp7 As

Re: HTMLViewer, HTTPSOcket questiion

2006-06-18 Thread Barry Traver
didn't put a slash after a directory name?), but that problem was easily fixed by modifying the URL. I can't do that here. Any more details on what I can and should do? Barry Traver __ Carlos M wrote: On Jun 18, 2006 2:07 PM, Barry Traver wrote: I c

HTTPSocket headers return truncated values...

2006-06-18 Thread Toni
i get truncated httpsocket internetheaders values at some websites, does anybody know a solution? i have this code in an actionEvent of a pushbutton: httpSocket1.get("http://x.com:9690";) an this code in the headersReceived event of the httpsocket: dim i,j as int

RE: HTMLViewer, HTTPSOcket questiion

2006-06-18 Thread Carlos M
On Jun 18, 2006 2:07 PM, Barry Traver wrote: > I can't seem to get HTTPSocket to give me what HTMLViewer > (correctly) gives me. > > I seem to get the HTML for a different page altogether. > (It's certainly not what I get if I go to that URL and "View > S

HTMLViewer, HTTPSOcket questiion

2006-06-18 Thread Barry Traver
I can't seem to get HTTPSocket to give me what HTMLViewer (correctly) gives me. Here's the URL: URL1 = "http://stevemorse.org/jcal/latlon.php?cookie=&hidden=&doextra="; _ + "&time=1150629157581&addr2latlon=1&address=" _ + "5927%20Ri

httpsocket header value truncated...

2006-06-18 Thread Toni
i get truncated httpsocket internetheaders values at some websites, does anybody know a solution? i have this code in an actionEvent of a pushbutton: httpSocket1.get("http://x.com:9690";) an this code in the headersReceived event of the httpsocket: dim i,j as int

Re: HTTPSocket, POST and timeout...

2006-06-02 Thread Mark Nutter
--- Daniel Chiaramello <[EMAIL PROTECTED]> wrote: > Hi all. > > Well, I have a problem with the Post method of HTTPSocket and > setting a > timeout. > > In documentation, the syntax is the following one: > HTTPSocket.Post URL, [File], [Timeout] The docs a

Re: HTTPSocket, POST and timeout...

2006-06-02 Thread Peter Truskier
uires fewer parameters than were passed." That's my problem :) - Original Message - From: "Giles Williams" <[EMAIL PROTECTED]> To: "REALbasic NUG" Sent: Friday, June 02, 2006 6:07 PM Subject: Re: HTTPSocket, POST and timeout... You just type it

Re: HTTPSocket, POST and timeout...

2006-06-02 Thread Daniel Chiaramello
Your simple sample does not compile (RB2006r2): "This method requires fewer parameters than were passed." That's my problem :) - Original Message - From: "Giles Williams" <[EMAIL PROTECTED]> To: "REALbasic NUG" Sent: Friday, June 02, 2006

Re: HTTPSocket, POST and timeout...

2006-06-02 Thread Giles Williams
You just type it exactly as the Documentation shows it. EG: Dim ht As New HTTPSocket ht.Post( "http://www.yoururl.com/";, 6000 ) That posts the file "http://www.yoururl.com/"; with a time out of 6 seconds. On 2 Jun 2006, at 16:51, Daniel Chiaramello wrote: Hi

HTTPSocket, POST and timeout...

2006-06-02 Thread Daniel Chiaramello
Hi all. Well, I have a problem with the Post method of HTTPSocket and setting a timeout. In documentation, the syntax is the following one: HTTPSocket.Post URL, [File], [Timeout] But I don't seem to be able to set the timeout!!! The HelpTag tells that only one version exists: HTTP.Post

RE: HTTPSocket GetHeaders NOT Timing Out

2006-05-13 Thread Carlos M
I filled a bug report for this problem, as I think this is a bug: http://snipurl.com/smhvwxde Carlos On May 13, 2006 6:17 PM, Carlos M wrote: > RB2006r2 on Windows 2000 > > When using: > Dim theHeaders As InternetHeaders > Dim theSocket As New HTTPSocket > Dim theURL

HTTPSocket GetHeaders NOT Timing Out

2006-05-13 Thread Carlos M
RB2006r2 on Windows 2000 When using: Dim theHeaders As InternetHeaders Dim theSocket As New HTTPSocket Dim theURL As String = "http://www.google.pt"; theSocket.Yield = True theHeaders = theSocket.GetHeaders(theURL, 3) MsgBox "Done" WITH an Internet connection

HTTPSocket trouble

2006-04-25 Thread Alexander Bauza
I'm getting a weird situation with this control. Im reading information from a web page using an HTTPSocket control but the data is incomplete, I see it in the PageReceived event. When I run this page in the browser the data is Ok. I thought it was because I was using App.DoEven

Re: HTTPSocket Authentication

2006-04-09 Thread Steve Garman
name = "MyName" password = "MyPassword" Return True Sorry, missed the last line somehow. -- Steve Garman Using REALbasic 2006r1 Professional on Windows XP Pro ___ Unsubscribe or switch delivery mode:

Re: HTTPSocket Authentication

2006-04-09 Thread Steve Garman
In a message regarding HTTPSocket Authentication dated Sun, 9 Apr 2006 01:08:21 -0500, Stephen Koger said that ... > Does anyone out there have a working example of using the > AuthenticationRequired Event when trying to access a HTTP site requiring a > username and password? name

HTTPSocket Authentication

2006-04-08 Thread Stephen Koger
Does anyone out there have a working example of using the AuthenticationRequired Event when trying to access a HTTP site requiring a username and password? I have been able to get to the point where the Event is Fired. but how to populate the proper header and variables and return them, I am a

Re: UserAgent in httpSocket ?

2006-04-08 Thread Jason Essington
yup, just set the user agent header via the HTTPSocket.setRequestHeader method prior to sending the request HTTPSocketip.setRequestHeader("User-agent", "MyApp") HTTPSocketip.setFormData form HTTPSocketip.post "http://www.server.com/script.php"; -jason On Apr 8, 2006, at 6:53 PM, Christian Leic

UserAgent in httpSocket ?

2006-04-08 Thread Christian Leicht
Hello, iam sending a http request to a webserver. In the Apache acces_log this request are from an unkown Agent. Is ist possible to set a own UserAgent in the Request ? Thanks for help Christian Dim form as Dictionary form = New Dictionary form.value("function") = "blaa" //form.Value("User

HTTPSocket, XML and DecodeURLComponent

2006-04-07 Thread [EMAIL PROTECTED]
Hi, When I'm posting some XML data with the HTTPSocket I have to replace all "+" by a space by myself. Is this normal? Why isn't DecodeURLComponent doing this task? Example: on the client: --- xml_doc=New XmlDocument // creating more xml dat

Re: Setting Timeout with HTTPsocket

2006-03-24 Thread Phil M
In this case, the REALbasic 2006r1 documentation does not even mention *in* the Get() entry that the function can return a string or a boolean depending on the parameters. It does use the return value in the example on the main HTTPSocket entry. ___

Re: Setting Timeout with HTTPsocket

2006-03-24 Thread Jerry Fritschle
On Mar 24, 2006, at 9:01 AM, Jason Essington wrote: the get and post methods that take a timeout are synchronous calls. They return the content, so you must use that return value. response = get(url, 7) This works. Thank you. Odd, though, that the error I got was "requires fewer paramete

Re: Setting Timeout with HTTPsocket

2006-03-24 Thread Jason Essington
the get and post methods that take a timeout are synchronous calls. They return the content, so you must use that return value. response = get(url, 7) -jason On Mar 23, 2006, at 9:20 PM, Jerry Fritschle wrote: When I try to add a timeout period to an httpsocket, I get "this m

  1   2   >