Help! Problems with NETWEBGET command and review of Apple

Previous topic - Next topic

msx

If Spots game is "in review" and use the NETWEBGET$ command would confirm that this is a bug.  :whistle:

Moebius

Considering that no one has had these problems before, is there anything in your "check for internet connection" code that could cause problems?  It seems strange that it would a GLB thing if it works in some instances but not others...
Endless Loop: n., see Loop, Endless.
Loop, Endless: n., see Endless Loop.
- Random Shack Data Processing Dictionary

msx

I searched in the forum and it is curious that the NETWEBGET command with the $ does not appear, so this would explain why no one has had any problems yet.

Anyway I'd like to meet someone who use this command and has a published application in App Store.

Kitty Hello

Quote
// 9.040
   // Kern:
   //    NETWEBGET$ returned nothing when the buffer was too small.

I think that was already fixed. But wasn't there a bug where it crashed, that you sent me as an email MrTaToad?

Omadan

MSX my friend, Ill help you in any way I can. I have 2-3 apps in the itunes store which use Netwebget$.
Approved and no problems in any manner :P
Top Arcade Apps - Best game for mobiles and computers

http://www.toparcadeapps.com

Millerszone

I'm using NETWEBGET$ and NETWEBGET in HTD Baseball iphone/ipad for the leaderboards
and don't have a problem, but it was compiled with version 9.040

I'm going to be sending an update tomorrow using the latest beta with the latest hotfix, does that
mean I now could have a problem with the NETWEBGET$ command?


Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

msx

Thank you Omadan. My application was working normally until it ran that command. Could prove that NETWEBGET$ is working properly?.

P.D.: Millerszone, don't worry, I used oficial versión and not Beta.

Millerszone

Just to be safe I removed NETWEBGET$ and used NETWEBGET for everything.
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

MrTAToad

Quote from: Kitty Hello on 2011-May-26
Quote
// 9.040
   // Kern:
   //    NETWEBGET$ returned nothing when the buffer was too small.

I think that was already fixed. But wasn't there a bug where it crashed, that you sent me as an email MrTaToad?
There was I believe - I cant remember when though...  :S

QuoteIf Spots game is "in review" and use the NETWEBGET$ command would confirm that this is a bug
I dont develop for iPhone - I prefer the much more programmer friendly webOS :)


Slydog

QuoteJust to be safe I removed NETWEBGET$ and used NETWEBGET for everything.

I've never used either command, but aren't they used two different ways?

NETWEBGET%() is to return a web page to a local file, which the name is specified in the call, and it returns an 'ok' status to the left variable if it succeeded (and you have to manually open the file if you want the text data)

NETWEBGET$() returns the web page string directly to the left variable

[Edit] Ha, or did you mean you also recoded the routine to expect the results in a file?
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]

Millerszone

Quote from: Slydog on 2011-May-26
QuoteJust to be safe I removed NETWEBGET$ and used NETWEBGET for everything.

I've never used either command, but aren't they used two different ways?

NETWEBGET%() is to return a web page to a local file, which the name is specified in the call, and it returns an 'ok' status to the left variable if it succeeded (and you have to manually open the file if you want the text data)

NETWEBGET$() returns the web page string directly to the left variable

[Edit] Ha, or did you mean you also recoded the routine to expect the results in a file?

To send leaderboard scores:
NETWEBGET("www.smashedfly.com", str$, 80, 0)

To receive leaderboard scores:
NETWEBGET("www.smashedfly.com", str$, 80, globalLeaderboardFile$)

Works on PC, should work on all platforms?

Using this to check internet connection:
Code (glbasic) Select

FUNCTION checkInternetConnection:

internetConnectionGood = FALSE

SOCK_INIT()
sock% = SOCK_TCPCONNECT("www.smashedfly.com", 80, 5000)
// if sock -1 then no connection to leaderboard server, if sock = 0 then leaderboard is connected
IF sock >= 0 THEN internetConnectionGood = TRUE
SOCK_CLOSE(sock)
SOCK_SHUTDOWN

ENDFUNCTION
Hardware: iMac 27", MacBook Air, PC 3.5Ghz Quad
Developing Tools: GLBasic SDK, Gideros Studio, PureBasic
Developing for: iOS, Android, Windows, OS X, webOS, HTML5

msx

Ok, so I did it and works correctly at least on the iPhone and Windows.

I note that you used sock > = 0, it took me a while to find out why it did not work.

I too use the NETWEBGET command and works perfectly.