Php - Curl To Conversion
Mar 5, 2010
How to post data using vb.net So i was wondering if someone can convert this curl code I made into vb.net :)
$useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
[CODE]
$data being an array, not sure how it will work in vb.net though.
View 1 Replies
ADVERTISEMENT
May 26, 2011
Using PHP, I send a .PEM certificate to a remote host with an outgoing request like this:
curl_setopt($curl, CURLOPT_SSLCERT, '/path/to/file.pem'); Is there a way to do this using VB .NET?
View 1 Replies
May 17, 2011
var pageConfig = {
enableYidHelper:true,
showCaptcha:1,
[CODE]...
I tried to grab the element by cURL an then just URL but both don't work..not sure who to click on that link.
View 1 Replies
Jan 7, 2011
I would like to create a webpage data parser and for that needs, I would like it to run in a Dekstop application.I would like to know if we can import php_curl.dll in a VB.NET applications ?
View 2 Replies
Oct 7, 2010
Is it possible to use cURL and HTTP POST for visual basic?I am trying to make software version of my script to a client..I've created a system in PHP but I also want to let them use a software to post stuffs.
So the first thing I need is to login.
This is my form:
PHP
<form action="dologin.php" method="post">
Username: <input name="[b]myusername[/b]" type="text"><br>
Password: <input name="[b][COLOR="rgb(139, 0, 0)"]mypassword[/color][/b]" type="password"><br>
<input name="submit" type="submit">
</form>
How do I use VB to post my username and password to login?I tried download libcURL but i still do not get the gist from the example.Because usually u will need to define the field name of the post to execute the code. eg (myusername, mypassword)
View 2 Replies
Jan 21, 2012
For a project I need a small program that can safely receive a string from another web-server.A user browses to a website, let's say for example www.EnterStringHere.com, and fills in a string. (I think PHP is good for this) This string is first being hashed/salted and via a secured method (PHP in combination with cURL) send to my program (therefore this topic) which is being hosted at my home server.Then it gets de-hashed/de-salted to bring back the original string and do something with it.I was thinking of making a VB.NET executable that "listens" at the home servers IP address to receive this string.
View 1 Replies
Jan 27, 2010
I've been looking at API and cURL and I'm thinking of creating a program for delicious which adds a bookmark for me a certain times during the day. They have an API page here which I think you use a cURL command to use but I don't know what any of this means
I reckon I could figure out everything except how to actually get the program to connect to delicious and add the bookmark, there doesn't seem to be anyone else using vb.net and cURL together so maybe there is a reason.
View 5 Replies
Apr 8, 2009
a user will enter a number, n, which ranges from 1 to 30. they will also enter a "P" or an "S" (sum or product). depending on which was selected, it will calculate the sum or product of the numbers from 1 to n.i'm having a conversion error on line 5 stating "Conversion from string "S" to type 'Double' is not valid." [code]
View 2 Replies
May 11, 2012
I'm creating a program in VB.net that does the following:At a high level I receive a file in email, put the attachment in a monitored folder, import the text file to excel, format the excel, and then email the excel file to a list of recipients.
Here is my plan:
Completed: Outlook VBA to monitor all incoming email for specific message. Once message is received drop attached .txt file in a specific network folder.
Completed: (VB.net) Monitor folder, when text file is added begin processing
Not Complete: (VB.net) Import text file to Excel
Not Complete: (VB.net) Format Excel Text file.(add in a row of data,format column headers with color/size, add some blank columns, add data validation to some of the blank columns that allow drop down selections)
Completed: (VB.net) Save file.
Completed: (VB.net) Send file to list of recipients.
Obviously the items above that are not complete are the bulk of the work, but I wanted to get some advice on what some of you think would be the best way to approach something like this. The import and formatting of the file are causing me some problems because I just can't decide what would be the most efficient way to do this.
The way stated above. Import to excel -> format Having a template excel that contains all of the formatting already done for me and attempting to transition the data to this document (no clue if/how I can do this). Is it even feasible? Have the template already created and then import the text file to a new excel file, then transition that data to the excel template?
Something I thought about, in terms of formatting the document, was to record a macro of me doing all of the formatting that I'm going to need and then attempt to convert that macro into my vb.net code, but I'm not sure if that will work. I will need to verify that the text file comes in the EXACT format every time correct?
View 5 Replies
Aug 31, 2009
Here's 2 questions that I hope someone can help me on. This is in VB.net. I keep on getting this error 'java.io.bufferedInputstream.count is not accessible in this context because it is 'Protected Friend'. Does anyone know how to fix this error?
The other errors i get are "Overload resolution failed because no accessible 'Val' accepts this number of arguments". I have listed below the code that I have coverted from Java. Where is my mistake?'the underlined areas are where it is giving me errors.
[Code]...i
View 7 Replies
Sep 7, 2010
I have a snippet that I need help modifying to work in VB.NET.1. Attribute VB_Name = "DBModule" gives error 'Declaration expected'.Am I missing a library reference here?Also, the project conversion tool chokes on four statements, one of which is: "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"Can I simply find the file and place it in the project directory? How would I reference it then? Additionally, The project converter lists errors locating the following files: msflxgrd.ocx, AResize.ocx, richtx32.ocx, and msmapi32.ocx. TIA
View 5 Replies
Nov 1, 2006
public class FloatToolStrip :ToolStrip { private Form floatForm; public Form FloatForm { get { return floatForm; }} c# is case sensitive so floatForm and FloatForm are different.
vb.net is case insensitive so when the inline compiler sees FloatForm, it says it has already been declared.
how do I convert the blue code into vb.net?
View 10 Replies
May 9, 2012
convert this code (Structure and its members) which is in VC++ to VB.NET.
#define GBIF_IP_MAC_NAME_CHAR_ARRAY_LENGTH 16
#define GBIF_STRING_DATATYPE unsigned char
typedef struct
{GBIF_STRING_DATATYPEucMacAddress[GBIF_IP_MAC_NAME_CHAR_ARRAY_LENGTH];// unsigned since the adress components can be higher than 128
[Code]...
View 24 Replies
May 10, 2010
I've looked for flv to mp4 conversion tutorials and library's on google but I haven't had any luck yet. I assume it's a complex process that requires flv and mp4 library's. I wont be affended if no one knows.
View 15 Replies
Feb 23, 2011
I am converting an old PHP porject over to ASP.Net (vb) and wondered if someone could point me in the right direction in order to convert this final snippet of code.There are 3 functions that are called from within this and i ahve converted those already and to be honest is the session arrays that are giving me the headache.I have thought about using Hashtables and DirecCasting but this was just confusing me further.[code]
View 1 Replies
Jan 13, 2011
I'm working on a cryptography program that was written in VB6 and modernizing it in VB.NET and I've run into a roadblock with the conversion from strings to byte arrays and then back again. I've tried a lot of stuff and it's probably something really simple.
The VB6 code used to look like this:
Public Function DecryptByteArray(byRef arrByteArray() As Byte, ByVal Password As String)
Dim strInput As String
Dim strOutput As String
[code]....
View 2 Replies
Jun 12, 2011
convert this code to VB8?
Private Sub mnuPoints_Click() mintBooks = mintBooks + Val(txtBooksRead) mintReaders = mintReaders + 1 mintBonusPoints = BonusCalculation(Val(txtBooksRead)) lblBonusPoints = mintBonusPoints
End Sub
Private Function BonusCalculation(br As Integer) As Integer
[code]....
View 1 Replies
Oct 1, 2010
I have a control that overrides the protected GetService method and assigns it to the IServiceProvider interface:
Class MyControl
Inherits Control
Implements IServiceProvider
[Code].....
I'm struggling to convert this to c#. I've tried implicit v. explicit but I must be getting the syntax wrong.
View 3 Replies
Oct 29, 2009
I need help converting this into PHP:
Public Function Encrypt(ByVal text As String) As String
Dim charSet1 As String, charSet2 As String, i As Long
Dim pos As Long, encryptedChar, encryptedText
charSet1 = " ?!@#$%^&*
[Code]...
I'm making a text to hash thing like presented above but in PHP for my website.. The code above is home-made so its nothing like MD5 or SHA1. But if you guys do know a way to encrypt and decrypt MD5 in Visual basic 2008 please show me! (this must also work for PHP).
View 1 Replies
Jan 26, 2011
I'm trying to convert the following C# code to VB. The reults from online conversion pages I have tried doesn't make sense to me and VS2010 marks them as flawed. My limited C# knowledge about events isn't enough to solve this one.
[Code]...
View 1 Replies
Nov 15, 2010
I'm having a bit of issue converting the following t-sql statement to Linq (using 4.0 entity framework)
[Code]...
View 1 Replies
May 20, 2010
I need to convert below mentioned file formats to pdf using C#/VB.Net. User will upload the file using FileUpload control and system will returns the pdf file after converting the document.
doc/docx to pdf
xls/xlsx to pdf
ppt/pps to pdf
Does ITextSharp provide such facility ? Please Only mentioned open source or free libraries.
View 4 Replies
Feb 9, 2010
I'm currently working for a client who owns a custom developed ASP/VB6/SQL2k5 3-tiered web application... The application has been developed over the course of 10 years by several different companies... I have a team who is in the process of rewriting components of this application over to a ASP.NET/C# applications, leaving the structure of the back end database in its current state (ie: no redesign of the database)... As you know, this is a very long tedious process when performed correctly... Our client is looking for a "wizard" type conversion tool or process instead of the redesign of the web UI and business objects... Several people on my team (including my architect and I) continue to tell our client this is not possible, that a full rewrite of the application is required... Can someone just validate my thoughts on this? Here are some of the technical specifications of the legacy application:
· VB COM objects are heavily reliant upon ADOR recordsets
· ~150k lines of VB code spread across 6 COM objects
[code]....
View 3 Replies
Jan 4, 2011
i want to know if it is possible to develop a video format conversion software in .net (C# or VB.net).
View 1 Replies
Jul 6, 2011
I am converting a C# Web Application to VB.NET. The problem occurs with the line "Array.Sort". I am unable to find a VB.NET equivalent of this line.
ArrayList arrSymbologies = new ArrayList();
get all public static properties
PropertyInfo[] propertyInfos;
propertyInfos = typeof(BarCodeReadType).GetProperties(BindingFlags .Public |
BindingFlags.Static);
[code]....
​I tried different online (free) C# to VB.NET converters, they convert is as follows, but the Visual studio 2008 give errors (BC30201: Expression expected. ; BC32017: Comma, ')', or a valid expression continuation expected.)
Array.Sort(propertyInfos, Function(propertyInfo1 As PropertyInfo, propertyInfo2 As PropertyInfo) propertyInfo1.Name.CompareTo(propertyInfo2.Name))
View 1 Replies
Apr 29, 2012
I'm working with a TreeView in a VB.NET to C# conversion project. I have this VB.NET WinForms code
Dim Arguments1 As String = path & "" & fs & " ls " & TreeView1.Nodes(ccc).Name
and I need the C# code. I got this far
string args = path + "\" + fs + " ls" + ...
I would assume it would be
.Items[ccc]
but there is not name attribute in that
View 2 Replies
Dec 21, 2009
I have been looking at certain tutorials on sharparchitecture and trying to no avail (the online convertors don't seem to be able to do this):
private Action<AutoMappingExpressions> GetSetup()
{
return c =>
[Code].....
View 1 Replies
Jun 20, 2009
Porting an application from C# (1.1 framework) to VB.NET (3.5 framework), and I have this one last event based issue I cannot get my head around.
[Code]...
The SpecialLogWriter constructor is expecting a SpecialEventHandler, but the Me.SpecialEvent in the constructor of SpecialLogWriter gives me the error message that this is an event and cannot be called directly.
Am I missing another delegate, or is this just one of this declaration issues between the languages?
View 2 Replies
Jun 10, 2010
This C# code successfully gets the 2 relevant records into _currentUserRegisteredEventIds:
ctx.FetchEventsForWhichCurrentUserIsRegistered((op) =>
{
if (!op.HasError)
[Code].....
View 3 Replies
Dec 18, 2009
I have been tasked with converting an old VB6 program to to C#. One function I have been having trouble porting over is the calculation of a birthdate from a filed that was read from a binary file.
View 5 Replies