Menu

#586 HTTP access from code

v1.1.x
closed
None
v1.1.3
New Functionality
2021-07-16
2021-05-29
Erik Hänel
No

The new version binds to libcurl.dll, which enables that one can use this lib to perfom HTTP requests via code or command line. An interface might be something like

http "http://example.com"
net "http://example.com" ## might be more future-proof

It is reasonable to enable https support (compile with libssh).

Analysis:

Enabling https requires adding another library to libcurl providing TLS support. mbed TLS will do the trick. Furthermore, the new command url will provide even ftp support so that we can browse through public available FTP servers. We currently think about adding uploading functionalities via libcurl, but this might be part of another ticket.

Implementation:

  • Implementation: Feature implemented as proposed by the analysis. The command is url and it does additionally support uploads to FTP servers. The library supports many more protocols, therefore more of them might be supported in the future.
  • Revision: [r889]
  • Implementation test: HTTP and FTP server accesses were performed and files were downloaded. Some files were uploaded to a FTP server.

Documentation:

  • [x] ChangesLog updated
  • [x] Code changes commented
  • Documentation articles:
    • [x] corresponding documentation articles updated
    • [x] new documentation articles created
    • [ ] not needed
  • Language files:
    • [x] corresponding language files updated
    • [ ] not needed

Tests:

Created a new SW test procedure for url. Tests ran without deviations (except of time-outs from the server).

Related

Commit: [r889]

Discussion

  • Erik Hänel

    Erik Hänel - 2021-05-29
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2021-06-12
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,4 +3,26 @@
         http "http://example.com"
         net "http://example.com" ## might be more future-proof
    
    -It is reasonable to enable `https` support (compile with liibssh).
    +It is reasonable to enable `https` support (compile with libssh).
    +
    +###Analysis:
    +(*Describe, what's the issue and which changes have to be made*)
    +
    +###Implementation:
    +* Implementation: (*Describe, what you've changed*) 
    +* Revision: [rXXX]
    +* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +
    +###Documentation:
    +* [ ] ChangesLog updated
    +* [ ] Code changes commented
    +* **Documentation articles:**
    
    +    * [ ] corresponding documentation articles updated
    +    * [ ] new documentation articles created
    +    * [ ] not needed
    +* **Language files:**
    +    * [ ] corresponding language files updated
    +    * [ ] not needed
    +
    +###Tests:
    +(*Describe, which tests you performed and their outcome*)
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2021-06-13
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -6,7 +6,7 @@
     It is reasonable to enable `https` support (compile with libssh).
    
     ###Analysis:
    -(*Describe, what's the issue and which changes have to be made*)
    +Enabling `https` requires adding another library to libcurl providing TLS support. mbed TLS will do the trick. Furthermore, the new command `url` will provide even `ftp` support so that we can browse through public available FTP servers. We currently think about adding uploading functionalities via libcurl, but this might be part of another ticket.
    
     ###Implementation:
    
     * Implementation: (*Describe, what you've changed*) 
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2021-06-15
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -9,19 +9,19 @@
     Enabling `https` requires adding another library to libcurl providing TLS support. mbed TLS will do the trick. Furthermore, the new command `url` will provide even `ftp` support so that we can browse through public available FTP servers. We currently think about adding uploading functionalities via libcurl, but this might be part of another ticket.
    
     ###Implementation:
    -* Implementation: (*Describe, what you've changed*) 
    -* Revision: [rXXX]
    -* Implementation test: (*Describe the type of test, which you performed, and if it was successful*)
    +* Implementation: Feature implemented as proposed by the analysis. The command is `url` and it does additionally support uploads to FTP servers. The library supports many more protocols, therefore more of them might be supported in the future.
    +* Revision: [r889]
    +* Implementation test: HTTP and FTP server accesses were performed and files were downloaded. Some files were uploaded to a FTP server.
    
     ###Documentation:
    -* [ ] ChangesLog updated
    -* [ ] Code changes commented
    +* [x] ChangesLog updated
    +* [x] Code changes commented
    
     * **Documentation articles:**
    -    * [ ] corresponding documentation articles updated
    -    * [ ] new documentation articles created
    +    * [x] corresponding documentation articles updated
    +    * [x] new documentation articles created
         * [ ] not needed
     * **Language files:**
    -    * [ ] corresponding language files updated
    +    * [x] corresponding language files updated
         * [ ] not needed
    
     ###Tests:
    
    • status: implementing --> testing
     

    Related

    Commit: [r889]

  • Erik Hänel

    Erik Hänel - 2021-07-16
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -25,4 +25,4 @@
    
         * [ ] not needed
    
     ###Tests:
    -(*Describe, which tests you performed and their outcome*)
    +Created a new SW test procedure for `url`. Tests ran without deviations (except of time-outs from the server).
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB