Programming :: Http Authentication With Libxml2

May 29, 2011

I'm trying to add HTTP authentication to my app (it's a rss reader). As the app is in written in C and uses Libxml2, I've been searching in Libxml2 doc, but it seems it's not possible. Maybe someone could point me to a link to relevant info about how I could achieve that?

View 6 Replies


ADVERTISEMENT

Programming :: Libxml2 : XmlFreeTextReader Crashes

Feb 22, 2011

I am using libxml2 (libxml2-2.7.6-1.fc10.x86_64 ) I get crash when I call xmlFreeTextReader after the XMl file is processed. Following is the sample code that I am using:

[Code]...

View 10 Replies View Related

Programming :: Use Libxml2 On MinGW - XmlFree Crashes

Oct 22, 2010

libxml2 works fine on Linux machines. On Windows, the distribution at [URL] is built for the Microsoft C compiler/linker. The tools pexport and dlltool supplied with MinGW work fine to enable linking to these libraries EXCEPT for static data within the DLL. libxml2 is written so that calls to xmlFree, xmlMalloc and xmlRealloc dispatch through static variables in the DLL - the actual function has another name. BUT, the link library that dlltool builds has its own .globl variable that never gets initialized, and calls to xmlFree(whoever) wind up at location 0.

SOLUTION: AFTER an initial call to xmlParseFile() or some other xml function that initializes the DLL's variables, add the line:

if(!xmlFree) xmlMemGet(&xmlFree,&xmlMalloc,&xmlRealloc,NULL) This will initialize the application's static pointers to the dll's routines. (The NULL pointer would return the address of xmlStrdup, but it's a function already, not a variable <???> so it works anyway).This solution is portable - if you run on a Linux machine where the pointers are properly initialized already, it won't hurt anything.

View 4 Replies View Related

Programming :: Libxml2: Removing Output On Stdout/stderr - Element CA Does Not Carry Attribute Maxlength

Jul 26, 2010

I'm using libxml2 to handle/manipulate some XML files. In order to check the consistency of a XML file, I have a DTD and I'm using the xmlValidateDtd method to compute the check.

However, when an error occures during the check (for example an attribute is missing in a XML tag), then libxml2 writes the error on the stdout/stderr. For exemple:

Code:

/home/XML/FreeFour.xml:18: element CA: validity error : Element CA does not carry attribute maxlength

The method return the right result (true or false depending on the check result), but occurring errors are written on the stdout/stderr, and I actually don't want that.

View 4 Replies View Related

Ubuntu :: Authenticate Through HTTP Authentication Via Bash Script?

Jun 23, 2011

I have a process where by all SVN repositories are held in /var/svn/[domain]. I have set-up a post-commit hook to automatically checkout the repository to the development site and delete all .svn directories recursively through-out.I intend to run a bash script (as below); this is where my problem lies. EVERY repository is "Open" and anyone can read, write and commit the repository, however thus is secure via HTTP Authentication, using htpasswd.

Because the hook is automatic, I would like to be able to collect the current user/password but I don't think it's possible so I have created an account for the system called "svnroot" with a password.How can i authenticate through the HTTP Authentication via my bash script?

View 2 Replies View Related

Server :: Apache2.2 MOD_PROXY ProxPass With HTTP Authentication

Dec 24, 2010

I have a server acting as a proxy to a couple of IP cameras on my local network. The IP cameras require HTTP-Authentication (Basic) but I want the outward facing Apache server to automatically log in without prompting the user for a login.

My current configuration is:

Code:

That works as a proxy but still asks for a HTTP Auth login. Can I get Apache to pass the login details to the IP cameras so users can just hit up the proxy and view the camera without having to log in?

View 2 Replies View Related

Ubuntu Multimedia :: Record A Stream With Http Cookie Authentication?

Apr 2, 2010

I can open the stream fine from Firefox and I have recorded streams using VLC, however this one uses cookies as authentication and VLC will not play it Apparently it's considered a security issue so cookie support has not been implemented for VLC.

View 2 Replies View Related

Software :: Error, Check The HTTP Server Authentication Requirements For Accessing This CGI

Jan 1, 2010

I using rhel5 i installed&configured nagios ofter loged in the nagios server when i m enter hosts & services i m getting this error # it appears as though you do not have permission to view information for any of the hosts you requested. If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file.

View 9 Replies View Related

Programming :: How To Listen To HTTP Request Using C++/C ?

Sep 14, 2009

Dear all,

My application has to listen to http request and it must be able to read the http header and then forward the request from proxy. All these things must be done on C/C++. please help me. Awaiting for your reply.

Thank in advance

View 4 Replies View Related

Programming :: Php And (pdf) File Sending By Http?

Dec 9, 2010

I have a web page that has links to a php script that sends pdf files to the browser when clicked.
The links are like this:

Code:
<a href="getfile.php?id=1201234">

The files sent are shown embedded in the browser, which is what I want.

The problem is: the title of the browser window or tab in which the pdf file is opened is "getfile.php?id=1201234"), and not the actual file name of the pdf file.

Is it possible to send the file by a php script in a way that the window/tab title becomes the filename and not the link by which it has been accessed?

View 5 Replies View Related

Red Hat :: Install RHEL4.8 Libxml2 And Libxsl - Undefined References

May 20, 2011

I have a RHEL4.8 machine, and I am trying to install the following libxml2-2.7.8 and libxslt-1.1.26 The OS installed versions are: libxml2-2.6.16-12.6 and libxslt-1.1.11-1.e14_7.2 I installed libxml2-2.7.8 and it appears to have installed successfully. However, when I attempt to build and install libxslt, it complains about some undefined references when linking to libxml2 which I believe are not in the old version (but do exist in the new one I installed). I am not able to erase the old versions and I am not able to update to the ones I want. I am at a dead-end at the moment and I am not sure how to proceed.

View 3 Replies View Related

CentOS 5 :: Installing PHP 5.3.6 - Libxml2 Issues And The MySQL Saga?

May 25, 2011

I've been at it all day trying to get PHP synced up with MySQL. The long and short of it is, php-mysql RPM's lead me into dependency hell (I've been trying to repent but for some reason I always end up there) after I had already used an RPM to install PHP. MySQL is fine, for now.

Here's where I'm at now... I have since uninstalled any previous versions of PHP and have grabbed the tar.gz2 version of PHP to compile / run with the "--with-mysql" option enabled. However, whenever I try to ./configure --with-mysql, I'm eventually told that "configure:error: libxml2 version 2.6.11 or greater required."

Running "rpm -qi libxml2" confirms that I've got version 2.6.26 installed... What gives!?

As is customary, here is my system info: Information for general problems.

== BEGIN uname -rmi ==
2.6.18-238.9.1.el5 i686 i386
== END uname -rmi ==
== BEGIN rpm -qa *-release* ==
centos-release-notes-5.6-0.i386
centos-release-5-6.el5.centos.1.i386

[Code]...

View 2 Replies View Related

Programming :: Java - Many Redirects On HTTP Connection?

Feb 1, 2011

I'm trying to open a web page to automate some data checking, and I'm getting a "too many redirects" exception. I'm not experienced enough with Java to know what to try next, and would like some help.

I'll show the code for what I've tried, but first, details about the website:[URL].. The website is a series of aspx pages. Going to the above address in a browser gets you to "default.aspx"--a search page. You don't see the redirects (specifically to a Login.aspx page--which redirects back to default.aspx). I can get the search page with either Firefox or wget--and on the same computer that I'm writing the Java code on. So, Firefox and wget are doing something that my code isn't. Also, I'm not behind a proxy.

I've searched about the redirect exception, and one or two pages blame poor website development. That may be true, but I don't have any control over the website. So, fixing the website is not an option.

I did find this page where someone has the same issue. I used some code given in one of the responses to discover the default.aspx->Login.aspx->default.aspx redirection loop.

Much of my code was pulled from the Working with URLs and Working with Cookies tutorials from Oracle. I tried adding the cookie handler thinking that maybe Login.aspx was trying to create a session ID or some other connection-specific identifier. But either cookies are not the solution OR I just didn't code it the right way.

[Code]...

After more searching, I'm 99% certain it's a cookie-handling issue. I added some more code (not included in the above) that examines the full response from the redirect to the Login.aspx page. The response includes a Set-Cookie header for "ASP.NET_SessionId". Now to find some code that will store and send the session ID.

View 1 Replies View Related

Programming :: Replacing Text With A Http Link With Sed?

Dec 10, 2010

Been at this all morning and fail on every attempt.

I have a file called sitemapindex.xml

Its contents just are names of the other sitemaps. Google gets pissy because it isn't in a http:// format.

So, I need "<loc>sitemap-c1mediawiki-............</loc>" to be replaced with "<loc>http://domain.tld/sitemap-c1mediawiki-............</loc>".

Here's the expression I've been trying:

find /path/to/site/sitemap-index-c1mediawiki* -type f | xargs sed -i 's/[<loc>sitemap]/[<loc>http://domain.tld/]/'

It fails.

I've tried with and without brackets.

View 4 Replies View Related

Networking :: Craft A Valid Http/1.1 Request For Getting Http Headers (not The Html File Itself)

Sep 27, 2010

Using netcat, nc(1), craft a valid http/1.1 request for getting http headers (not the html file itself!) for the main index page of www dot aalto dot fi. What request method did you use? Which headers did you need to send to the server? What was the status code for the request? Which headers did the server return? Explain the purpose of each header.

nc -v www dot aalto dot fi 8080
HEAD / HTML/1.1
host: www dot aalto dot fi
And it returns:
200 OK
Content-Length: 858
Content-Type: text/html
Last-Modified: Thu, 02 Sep 2010 12:46:01 GMT
[Code]....

I really don't know what does it mean. Question 2: Using netcat, nc(1), start a bogus web server listening on the loopback interface port 8080. Verify with netstat(, that the server really is listening where it should be. Direct your browser to the bogus server and capture the User-Agent: header "Direct your browser to the bogus server and capture the User-Agent: header" I don't understand this question.

View 2 Replies View Related

Programming :: Execute C Program Through HTML On HTTP Web Server?

Oct 15, 2009

I would like to execute an already written C program that I am running on my embedded Linux, but from afar - through a HTML page. I am running an embedded Linux on my FPGA prototype board with a MicroBlaze soft processor. On this Linux i am running a httpd web server - I can serve html web pages to the outside through Ethernet connection. Now, I have a program written in C in this embedded Linux in /bin/gpio-test that does some stuff with my IO devices. Now I would like to control these IO devices through HTML web page - so I would like to be able to run this gpio-test program from a html web page and possibly send the program some parameters.

View 2 Replies View Related

Programming :: G++ Error \ Http://gcc.gnu.org/onlinedocs/gcc/i3...4-Options.html?

Apr 1, 2011

Code:
Andrew@Mac:~$ g++ -march=athlon64-sse3 -O2 Projects/omgarrays.cpp -o Desktop/omg
Projects/omgarrays.cpp:1: error: bad value (athlon64-sse3) for -march= switch

[code]....

View 4 Replies View Related

Programming :: Pull Http Links Out Of Text Files?

Aug 15, 2010

I am trying to figure out a way to pull http links out of text files and then output the results in a log. The text files are in folders like this inside a source directory.

/source
./folder1
...folder1.txt
./folder2
...folder1.txt

[Code]....

View 4 Replies View Related

Programming :: Send A Request To A Http Server Without Using Sockets.

Jul 8, 2011

Hi, is it possible to send a request to a http server without using sockets?

View 7 Replies View Related

Programming :: Upload Zip With Textfiles Via Http --> Import Into MYSQL?

Jun 13, 2011

I want the LAMP server to present an upload page to the user The user uploads a zip file containing txt files which are tables in clear-text format The server : opens the zip validates the text files (going to skip this for now, but will try to make later) converts the files as here imports them to MYSQL tables All this is supposed to happen automatically, then the user can immediately use the website with the updated data How to implement this (esp. the first part with the zip file)

View 1 Replies View Related

Ubuntu Servers :: Nagios On 10.04 Server Using Apt-get - HTTP WARNING: HTTP/1.1 404 Not Found

Aug 4, 2010

I installed Nagios on my Ubuntu 10.04 server using apt-get and when I accessed the web console, everything was OK. I made some changes to apache (creating some new virtual sites) and since then Nagios gives me a warning message for HTTP with the message, HTTP WARNING: HTTP/1.1 404 Not Found. The sites that I created are working perfectly. I noticed that the attemps are 4/4. Does this need to be reset or does Nagios automatically reset that once it detects the issue is resolved?

View 1 Replies View Related

Programming :: Sockets - P2 - P3 Http Connection Taking More Time Than The Expected?

Mar 31, 2011

Iam using socket programming in one of my problem. The scenario is like this.

=>one module is working as a socket server(process p1) is able to handle client sockets on that port.
=>one module is working as socket client (process p2) is connected to server socket and Tx/Rx data on this socket. This module has some more threads, based on received data from server socket it will connect to http on other thread and get information...
=>one more module is working as socket client (process p3) is also connected to server socket and doing some other transactions.

Here my problem is when in presence of p2, p3 http connection taking more time than the expected. If we wont start p3(means only one server-client socket) then http connection is fast enough.

View 1 Replies View Related

Programming :: NTLM Authentication PHP?

May 20, 2010

I'm writing some php code and part of it sending an email through smtp server, I used Mail.php from pear but unfortunately I didn't work since the smtp server is using NTLM authentication.Any alternates to Mail.php could solve this problem?

View 1 Replies View Related

Programming :: Curl And ASP Authentication - Cannot Verify Credentials

Sep 6, 2010

I've got an asp page (I can't edit) which I can access with a test user I've setup, however when I try to access to same page via curl, I get the following error:
Code:
<h1> You are not authorized to view this page </h1>

The URL you attempted to reach has an ISAPI or CGI application installed that verifies user credentials before proceeding. This application cannot verify your credentials. There's lots of other text (doubt it's relevant though).

Here's the one liner I'm using:
Code:
curl -A "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" -u myusername:mypassword [URL]
I've done some searching but cant find anything which doesn't suggest rewriting the asp...

View 1 Replies View Related

Programming :: Openvpn AUTH_FAILED And Remote Authentication Script?

May 22, 2011

Ive been trying to fix my openvpn remote authentication script. I managed to write a script for remote authentication using wordpress db as my base access details storage. However I cannot seem to get past AUTH-FAILED issue. Possible source of conflict might be my database query inside the script which returns nothing. Hope someone with enough knowledge of scripting and database querying can help me here.

here is my vpn_auth.sh:
Code: Code: #!/bin/bash
### Database Informations
DBUSER='dbuser'
DBPASS='dbpass'

[Code]...

View 1 Replies View Related

Ubuntu Security :: Configure SSH Key-based Authentication And SSH Password Authentication In Same Machine For Different User?

Jan 10, 2010

I want to configure SSH key-based authentication and SSH password Authentication in same machine for different user .

View 1 Replies View Related

Ubuntu Servers :: Postfix Smarthost + Authentication: Get 535 Incorrect Authentication Data Error

Mar 14, 2011

On Ubuntu server 10.10, with a relay smtp server with authentication via postfix; I keep getting 535: Incorrect authentication data. I'm sure my username and password is correct. Heres how I set up postfix: I created a file called smarthosts.conf in my /etc/postfix/ directory that contains the following:

[Code].....

my server uses plain text authentication on port 25. I would like to use security like SSL, but this particular server is unsecured.

View 9 Replies View Related

General :: Xml Parsing Using "libxml2.so" Library

Mar 8, 2011

i need a sample xml parser program which parses given xml file and prints its contents iam very new to this area and iam using libxml2.so library I wish that provided example should be in C only

View 3 Replies View Related

Debian :: Way To Make Su Repeat Authentication Rather Then Just Returning Authentication Failed

Apr 1, 2016

If I am running a script, let's say a install script. Is there a way to make Su repeat authentication rather then just returning "Authentication failed" and continuing the script?

View 3 Replies View Related

Security :: Make A Choice On What Authentication Protocol To Use For Authentication And Authorization?

Jan 17, 2011

I need to make a choice on what authentication protocol I want to use for Authentication and Authorization. I was looking at Radius and then literature suggested that Diameter was a better protocol. Keep in mind I need this on a hetrogeneous setup ( linux & windows together). Diameter seemed like a good fit until I discovered that the open source code no longer seems to be maintained ( C/C++).

I was also looking at Kerberos as an option though there is alot overhead with the server. SSL/TLS or EAP? I am looking for simple but secure and am new at the security protocols.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved