Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    HTTP requests with web control not working as expected

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    http web control duet wifi
    2
    3
    375
    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.
    • danwillmundefined
      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
      • Vetiundefined
        Veti
        last edited by

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

        danwillmundefined 1 Reply Last reply Reply Quote 0
        • danwillmundefined
          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