bugGNU Octave - Bugs: bug #47635, Octave fetches http urls without a...

 
 

bug #47635: Octave fetches http urls without a User-Agent header

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Thu 07 Apr 2016 02:19:55 AM UTC  
 
Category: Octave FunctionSeverity: 1 - Wish
Priority: 1 - LaterItem Group: Feature Request
Status: PostponedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 08 Apr 2016 12:51:28 AM UTC, comment #2:

The Matlab docs show that urlread and urlwrite accept keyword/option arguments to specify things like UserAgent so to be compatible, Octave should do the same.

John W. Eaton <jwe>
Project Administrator
Thu 07 Apr 2016 06:31:25 PM UTC, comment #1:

I'm attaching a preliminary partial solution. Things that still need to be done:

  • set default from version and config info (need to move some config and version info to liboctave from libinterp; see bug #45659)
  • provide way to change user agent string from Octave scripting language (separate function or option for urlread/urlwrite?).

(file #36858)

John W. Eaton <jwe>
Project Administrator
Thu 07 Apr 2016 02:19:55 AM UTC, original submission:

Octave should set its own User-Agent string in all outgoing http requests. Ideally this could be configurable by the user, but there should be a default. As it is now it is unset, which means no User-Agent header is sent.

The default should indicate that GNU Octave is the client, which version, and what operating system it is running on.

This should apply to both the url_transfer class (used by the GUI) as well as the urlread and urlwrite command-line functions.

This would be a nice small self-contained project for a new contributor to work on.

Mike Miller <mtmiller>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #36858:  diffs.txt added by jwe (3KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by mtmiller (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 07 Apr 2016 06:31:25 PM UTCjweAttached File-=>Added diffs.txt, #36858
    Thu 07 Apr 2016 02:24:09 AM UTCmtmillerPriority5 - Normal=>1 - Later

    Back to the top


    Powered by Savane 3.1-cleanup1