locked
Proxy use in small basic? RRS feed

  • Question

  • Does small basic recognise proxies? I'm using small basic to teach at school and I'm trying to use, for example the flickr libraries. When I do, they always return empty images. If i try the same project on a home computer then it works fine - so I'm assuming its to do with the proxy settings?!

    Monday, July 5, 2010 2:24 PM

Answers

All replies

  • John,

    Sorry I have no answer, just replying to bump your query up to the top again in case anyone that may have missed this question has a suggestion; there are a number of teachers using SmallBasic, some may have experience of this.

    Good luck.

    Saturday, July 10, 2010 10:18 PM
  • I also have the same issue.  Anyone any help?
    Evan Camilleri http://www.holisticrd.com http://www.dotnetmushroom.com http://www.mobilesalesman.com
    Wednesday, July 21, 2010 7:50 AM
  • Problem is Inside SmallBasicLibrary.

    It uses System.Net.WebRequest to download files. If you are using Proxy you must configure that WebRequest but you cant do that because it is inside SmallBasicLibrary.


    Sorry My Bad English
    Wednesday, July 21, 2010 9:50 AM
  • Hi! Can someone who uses proxy test this extension? It uses proxy with default settings of users computer. Download


    Sorry My Bad English
    Wednesday, July 21, 2010 11:00 AM
  • no, it did not work.

    i put the following:

     GraphicsWindow.Show() 
     pic = FlickrPlus.GetRandomPictureUsingProxy("lightning") 
     gw = GraphicsWindow.Width 
     gh = GraphicsWindow.Height 
     GraphicsWindow.DrawResizedImage(pic, 0, 0, gw, gh)
    if you can pass me the code, i will try to debug it.  (i use c# or vb.net)

    my email is info@evancamilleri.com.NOSPAM


    Evan Camilleri

    http://www.holisticrd.com http://www.dotnetmushroom.com http://www.mobilesalesman.com

    Wednesday, July 21, 2010 5:08 PM
  • FilckrPlus.GetRandomPicture returns URL of image not IMAGE , try use

     GraphicsWindow.Show() 
     pic = FlickrPlus.GetRandomPictureUsingProxy("lightning"
    )  
    pic = ImageList.LoadImage(pic) gw = GraphicsWindow.Width gh = GraphicsWindow.Height GraphicsWindow.DrawResizedImage(pic, 0, 0, gw, gh)

    Filckr and FlickrPlus just returns url of image but you must also load that image to Imagelist to draw that image.

    Try this TextWindow.Writeline(FlickrPlus.GetRandomPicture("lightning"))

    and this TextWindow.Writeline(Flickr.GetRandomPicture("lightning"))

    if those both returns an url for image both objects work. But if you want use custom proxy, not default proxy settings you need another extension.



    Sorry My Bad English
    • Proposed as answer by Oskariok Wednesday, July 21, 2010 7:39 PM
    Wednesday, July 21, 2010 7:35 PM
  • Still no go with none!  I use Microsoft ISA Client to set the proxy!

     

    I think the best solution is for MS to include some sort of setting in a configuration file or to, at least, check for a default proxy.

    Most training centers and schools are protected by proxies/firewalls/etc...

     

     


    Evan Camilleri http://www.holisticrd.com http://www.dotnetmushroom.com http://www.mobilesalesman.com
    Thursday, July 22, 2010 7:52 AM
  • Small Basic uses the system's proxy configuration to hit the web.  If your browser is configured to "automatically detect proxy settings", this might cause problems.  You could try by turning this off on the browser and see the effects.  Meanwhile, can you put a pointer to this on the bugs thread (http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/bea67dd7-910e-4407-b2ca-4a994698b117) and I'll investigate this for v1.0?

    Thanks.

    Thursday, July 22, 2010 9:50 PM
  • My proxy was set manually so it doesn't pick up the system proxy for me..
    Sunday, October 24, 2010 9:00 PM