Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 703884 Details for
Bug 916224
libsoup doesn't reask for a password of a Google server
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
test2.c
test2.c (text/plain), 1.93 KB, created by
Milan Crha
on 2013-02-28 11:49:54 UTC
(
hide
)
Description:
test2.c
Filename:
MIME Type:
Creator:
Milan Crha
Created:
2013-02-28 11:49:54 UTC
Size:
1.93 KB
patch
obsolete
>/* gcc -g -O2 -Wall `pkg-config --cflags --libs libsoup-2.4` test2.c -o test2 && ./test2 */ > >#include <stdio.h> >#include <string.h> >#include <libsoup/soup.h> > >static GMainLoop *loop; >static SoupSession *soup_session; > >static void >authenticate_cb (SoupSession *sess, > SoupMessage *msg, > SoupAuth *auth, > gboolean retrying, > gpointer data) >{ > printf (" %s: retrying:%d\n", __FUNCTION__, retrying); > > if (!retrying) > soup_auth_authenticate (auth, "test", "password"); >} > >static gboolean >queue_message_idle_cb (gpointer user_data) >{ > SoupMessage *message; > > message = soup_message_new (SOUP_METHOD_OPTIONS, "https://www.google.com/calendar/dav/test"); > soup_message_headers_append (message->request_headers, "User-Agent", "Evolution/3.6.3x"); > g_object_set (soup_session, SOUP_SESSION_SSL_STRICT, FALSE, NULL); > > soup_message_set_flags (message, SOUP_MESSAGE_NO_REDIRECT); > //soup_message_add_header_handler (msg, "got_body", "Location", G_CALLBACK (redirect_handler), cbdav->priv->session); > soup_message_headers_append (message->request_headers, "Connection", "close"); > > printf ("%s: sending...\n", __FUNCTION__); > soup_session_send_message (soup_session, message); > printf ("%s: result: %d\n", __FUNCTION__, message->status_code); > g_object_unref (message); > > g_main_loop_quit (loop); > > return FALSE; >} > >int main (void) >{ > g_type_init (); > > loop = g_main_loop_new (NULL, FALSE); > soup_session = soup_session_sync_new (); > g_object_set ( > soup_session, > SOUP_SESSION_TIMEOUT, 90, > SOUP_SESSION_SSL_STRICT, TRUE, > SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE, TRUE, > NULL); > g_signal_connect (soup_session, "authenticate", G_CALLBACK (authenticate_cb), NULL); > > { > SoupLogger *logger; > logger = soup_logger_new (SOUP_LOGGER_LOG_BODY, -1); > soup_session_add_feature (soup_session, SOUP_SESSION_FEATURE (logger)); > } > > g_idle_add (queue_message_idle_cb, GINT_TO_POINTER (0)); > g_main_loop_run (loop); > g_main_loop_unref (loop); > > g_object_unref (soup_session); > > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 916224
: 703884