Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Solved HTTP requests with web control not working as expected

    Duet Web Control
    http web control duet wifi
    2
    3
    198
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • danwillm
      danwillm last edited by

      Hi!

      I'm trying to setup my raspberry pi to send HTTP requests using the available HTTP requests that are in the duet web control. However, when I try to send gcode to the printer, by sendinghttp://{ip}/rr_gcode?gcode=G28 YX I get {u'buff':248} returned back to me, but the printer does not move. This is after I connect to the printer using rr_connect

      What is going wrong?

      Many thanks in advance.

      1 Reply Last reply Reply Quote 0
      • Veti
        Veti last edited by

        spaces are not allowed in urls.
        try urlencoding the request. i.e replace space with %20

        danwillm 1 Reply Last reply Reply Quote 0
        • danwillm
          danwillm @Veti last edited by

          @veti Yep that was the reason! Thanks a lot!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA