I'm trying to make a program that will use Curl to retrieve just the text from a website and store it as a string. I'm trying to look at the curl manual to figure out what I need to use, but I'm confused since I'm not familiar with HTML terms. What lib functions I would need to make this program?
I'm trying to upload a file to a FTP server with curl. The problem is that I do not know what to do after I enter the passive mode and open the specified port. I tried to send data with curl_easy_send but it simply hangs.
bool Ftp::Upload(const char *local_fn,const char *remote_fn) { int ret; string ip; unsigned port; SendCmd("TYPE I"); // Enter passive mode and get IP & port if(pasv(ip,port)==false) return false;
[Code]...
How to send file to the server. And I also suspect I should tell the file size to the server.
I was wondering if there was a way for me to send information, say a username and password, to a webpage via a c++ function. I was unsure how exactly to word it, but I did attempt to google it. Here is an example of what I mean.
App starts -> goes to "Https://www.my-site.com/?user=$username&password=$password" -> username/password is valid -> logs them in on desktop app
I do not know much about php, but I am assuming the ?user=$username is setting a variable, correct? I am familiar with sockets, but it seems using the above method, this could be possible without sockets, would it?
Important part:
That is the method that minecraft uses to login players, the question here is what function could I start to send the desktop app to the webpage.
EDIT:: After looking a little more I find that it is probably not possible without sockets, which is fine; however I don't know how to do it still, I would prefer to not use external libraries, such as Curl.
I need to get the country automatically from code to show in my app. Well, I found this page: [URL] .... which gives to you the country code like I need. But I don't know if there are any form to get this from code.
I would like to make a simple program that will go to a online vendor's website to check for stock. I figure that the best way of doing this is to make the program download the webpage's HTML source code then search for the area where the stock availability is.
For example, on this webpage. I could make the program search between
<p class="stockstatus"> and </span></p> for Sold Out to determine whether the item is in stock or not.
I have a couple of questions. First of all, is this the most viable way to go about checking whether an item is in stock? Second, how should I go about coding it?
Is it possible to save web page as image with web application? if yes then how?.I searched and searched and searched but all examples i found were for windows application and i'm facing lot of trouble while converting it for web application.
Is it possible to fill a textbox on a webpage using the onkeydown html element in c# using the web control built in. i am totally aware of the normal methods of doing this but the normal methods have failed to work....
I want to make a program that opens a text file and checks the usernames listed in the text files to see if the names are registered on a site such as twitter. How easy would this be to make, what things would I need to know?
I want to extract Text1, Text2, Text3, Text4,..., Text600 in the output file. How can i achieve this?
/* BTW, I am not getting my homework done here. I am an ex-programmer, who has now moved to marketing for some time now, and today, I encountered this problem, which I believe can be solved easily through programming. */
i want to create 100 gmail accounts instantaneously....what i want from you guys is i have written a program that create a text file i want that once i give the program the imput of 1 it should delete the first 3 lines from the file i.e. the first account details coz that is already been created and shift the rest of it 3 lines upwards after that i'll write a javascript that will automatically fill and create the accounts with those names in web browser.....my lil program is here:
Program that reads in a normal text file and converts it into mobile phone text. that is if the word is 3 characters or less then ther is no changes to the word and if the word is four or more letters then remove all the vowels from the word except for vowels that are capitals.
I want to highlight selected text in a wpf textbox while the textbox is not focused. In my application, my textbox never gets focus, and every key input is done manually. I was wondering if there is a way to highlight the selected text when the textbox is not focused?
This is part of my code. what i wanna know is if there is a way to fill this array until the text is over instead of having to set the number of strings in the file (20). And then store that number into a variable.
From my tests I found the problem to be somewhere in the Mantissa part that converts it to binary.
bool xsDLL GetHexFromSF_IEEE754( void* to, Text from, ui08 tSize ) { from.UpperCase(); int db = 0, dB = 0, dBEnd = tSize, dBLast = ( tSize - 1u ), dbEnd = dBEnd * 8; ui08 *data = reinterpret_cast< ui08* >( to ); for ( ; dB >= 0; --dB ) data[ dB ] = 0u;
[Code] ....
Adjustments made, still having problems though. After finding a more useful resource [URL] ..... I got the function looking more like it should but am still having problems...
I'm writing a program that is supposed to take text of a png file name (including the file extension) and open it so that the program can read the data inside. I'm unsure what method I can use to open the file if I just have the file name.
I have to develop a program that will analyse these time-sampled voltage and current measurements over 24 hours and find the total energy used, mean and peak power consumption and Energy used over each hour of the 24 hour period.
How do I go about doing this? I also need to include at least one numerical integration technique. The file data contains over 50 thousand lines in the format mentioned above.