Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Http networking lacks Put and Delete method support?  (Read 2432 times)

0 Members and 1 Guest are viewing this topic.

MorleyDev

  • Full Member
  • ***
  • Posts: 219
  • "It is not enough for code to work."
    • View Profile
    • http://www.morleydev.co.uk/
Http networking lacks Put and Delete method support?
« on: July 17, 2012, 03:01:49 pm »
I was looking through SFML's HTTP documentation for 2.0 and noticed the list of supported request methods included GET, POST and HEAD. However, it seems there is no mention of PUT and DELETE.

I would of had use of these methods due to working on some code where I wanted to use a third party web service is using a REST design, tying specific functionality to them and letting you perform operations on an account in their database.

So, basically I'm curious: Why no put or delete? Or am I just blind?
« Last Edit: July 17, 2012, 03:15:27 pm by MorleyDev »
UnitTest11 - A unit testing library in C++ written to take advantage of C++11.

All code is guilty until proven innocent, unworthy until tested, and pointless without singular and well-defined purpose.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Http networking lacks Put and Delete method support?
« Reply #1 on: July 17, 2012, 04:56:30 pm »
Http and Ftp are still very basic in SFML, they lack a lot of features.

Create a new issue on the tracker if you want ;)
Laurent Gomila - SFML developer

MorleyDev

  • Full Member
  • ***
  • Posts: 219
  • "It is not enough for code to work."
    • View Profile
    • http://www.morleydev.co.uk/
Re: Http networking lacks Put and Delete method support?
« Reply #2 on: July 17, 2012, 05:39:17 pm »
Done: https://github.com/SFML/SFML/issues/257

From my brief dive into the SFML code, it looks like it may be a quick addition by adding 4 lines (2 to the header and 2 to the source file). I documented what the change appears to require and where in the issue.
« Last Edit: July 17, 2012, 05:50:19 pm by MorleyDev »
UnitTest11 - A unit testing library in C++ written to take advantage of C++11.

All code is guilty until proven innocent, unworthy until tested, and pointless without singular and well-defined purpose.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Http networking lacks Put and Delete method support?
« Reply #3 on: July 17, 2012, 08:52:06 pm »
Thanks :)
Laurent Gomila - SFML developer