Grasshopper

algorithmic modeling for Rhino

Another question. How can I open a URL from VB, say if I want to send an HTTP request or post and recieve the reply.

-Chris

Views: 938

Replies to This Discussion

Hi Chris,

have a look at WebClient.

- Giulio
________________
giulio@mcneel.com
McNeel Europe, Barcelona
Hey,

Just tried using it, but it seems like I need to import System.Net, but I cannot edit the Imports in the GH code editor.

-Chris
Ok, I tried:
Dim client As New System.Net.WebClient()

That got past that I think.
Awesome! I got it working. Once I figure out some fun way to play with it I'll let you know.

Thanks

Chris,

 

Have you poked around with this any further? Have you played with pushing data to a site as well as retrieving data?

 

Matt

No, but I plan to in the next months. Tell me if you try anything with it.

 

I'd like to set up a database on the web that a classroom can interact with using web browsers or apps, and GH can rebuild the solution by hitting the database on the timer. It would be interactive and I think the students would enjoy it.

 

I can post the code if you need it.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service