[Gambas-bugtracker] Bug #1658: I need to be able to set REFERER on HttpClient connection (gb.net.curl)

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Oct 4 10:11:02 CEST 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1658&from=L21haW4-

Cristiano GUADAGNINO reported a new bug.

Summary
-------

I need to be able to set REFERER on HttpClient connection (gb.net.curl)

Type             : Request
Priority         : Medium
Gambas version   : Master
Product          : Networking components


Description
-----------

LibCurl supports setting the http referer header by using the CURLOPT_REFERER option (https://curl.haxx.se/libcurl/c/CURLOPT_REFERER.html), however gb.net.curl does not implement it.
Would it be possible to add support for it?
Thank you in advance
Cris


System information
------------------

[System]
Gambas=3.14.90 bf71bb20c (master)
OperatingSystem=Linux
Kernel=5.3.1-1-default
Architecture=x86_64
Distribution=openSUSE Tumbleweed 20191002
Desktop=KDE5
Theme=Breeze
Language=it_IT.UTF-8
Memory=11680M

[Libraries]
Cairo=/usr/lib64/libcairo.so.2.11600.0
Curl=/usr/lib64/libcurl.so.4.6.0
DBus=/usr/lib64/libdbus-1.so.3.19.9
GStreamer=/usr/lib64/libgstreamer-1.0.so.0.1600.0
GTK+2=/usr/lib64/libgtk-x11-2.0.so.0.2400.32
GTK+3=/usr/lib64/libgtk-3.so.0.2404.7
OpenGL=/usr/lib64/libGL.so.1.7.0
Poppler=/usr/lib64/libpoppler.so.83.0.0
Poppler=/usr/lib64/libpoppler.so.88.0.0
Poppler=/usr/lib64/libpoppler.so.89.0.0
Poppler=/usr/lib64/libpoppler.so.90.0.0
Poppler=/usr/lib64/libpoppler.so.91.0.0
QT4=/usr/lib64/libQtCore.so.4.8.7
QT5=/usr/lib64/libQt5Core.so.5.13.1
SDL=/usr/lib/libSDL-1.3.so.0.0.0
SDL=/usr/lib64/libSDL-1.2.so.0.11.4
SQLite=/usr/lib64/libsqlite3.so.0.8.6

[Environment]
AUDIODRIVER=pulseaudio
BASH_FUNC_mc%%=() {  . /usr/share/mc/mc-wrapper.sh
}
COLORTERM=1
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_SESSION=/usr/share/xsessions/plasma5
DISPLAY=:0
EDITOR=/usr/bin/joe
FROM_HEADER=
FTP_PROXY=http://127.0.0.1:3128
GB_GUI=gb.qt5
GPG_TTY=not a tty
GS_LIB=<home>/.fonts
GTK2_MODULES=unity-gtk-module
GTK3_MODULES=unity-gtk-module
GTK_IM_MODULE=cedilla
GTK_MODULES=canberra-gtk-module
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
HISTSIZE=1000
HOME=<home>
HOST=<hostname>
HOSTNAME=<hostname>
HOSTTYPE=x86_64
HTTPS_PROXY=http://127.0.0.1:3128
HTTP_PROXY=http://127.0.0.1:3128
INPUT_METHOD=
JAVA_BINDIR=/usr/java/latest/bin
JAVA_HOME=/usr/java/latest
JAVA_ROOT=/usr/java/latest
JDK_HOME=/usr/java/latest
JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
LANG=it_IT.UTF-8
LANGUAGE=it_IT.UTF-8
LESS= -R 
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/etc/lesskey.bin
LESSOPEN=| /usr/bin/src-hilite-lesspipe.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LOGNAME=<user>
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/<user>
MANPATH=/usr/local/man:/usr/share/man
MINICOM=-c on
MORE=-sl
NO_PROXY=localhost, 127.0.0.1
OSTYPE=linux
PAGER=less
PATH=<home>/bin:/usr/local/bin:/usr/bin:/bin:/snap/bin:/usr/sbin
PROFILEREAD=true
PWD=<home>
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=xim
QT_IM_SWITCHER=imsw-multi
QT_SYSTEM_DIR=/usr/share/desktop-data
SDK_HOME=/usr/java/latest
SDL_AUDIODRIVER=pulse
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/5693,unix/<hostname>:/tmp/.ICE-unix/5693
SHELL=/bin/bash
SHLVL=1
SOCKS5_SERVER=
SOCKS_PROXY=
SSH_AGENT_PID=5642
SSH_ASKPASS=/usr/lib/ssh/ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-40c4Ff7AxG3f/agent.5526
TERM=xterm
TZ=:/etc/localtime
UBUNTU_MENUPROXY=1
USER=<user>
WINDOWMANAGER=/usr/bin/startkde
XAUTHLOCALHOSTNAME=<hostname>
XAUTHORITY=<home>/.Xauthority
XCURSOR_THEME=breeze_cursors
XDG_CONFIG_DIRS=/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=KDE
XDG_SESSION_ID=2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XMODIFIERS=@im=local
XNLSPATH=/usr/share/X11/nls
XSESSION_IS_UP=yes
_=/usr/bin/kwrapper5
ftp_proxy=http://127.0.0.1:3128
gopher_proxy=
http_proxy=http://127.0.0.1:3128
https_proxy=http://127.0.0.1:3128
no_proxy=localhost, 127.0.0.1
socks_proxy=




More information about the Bugtracker mailing list