Api - Load Results From A GET/POST Request In .net?

Mar 18, 2009

I want to develop a program that uses an online API, with GET and POST requests, and I want to know how to make the requests within the program (without the user seeing a web page), and then download the results into the program so I can parse them

View 1 Replies


ADVERTISEMENT

.net - Post And Get Request In Asp.net?

Mar 24, 2011

I want to make two request to submit a form of another web application. How can I create post and get request. And how can I use secure this.PS. I don't want to create ajax request. Just httpwebrequest.

View 1 Replies

How To Make A POST Request

Oct 8, 2009

I am using visual studio 8, using vb.net. I am trying without success to make a post request to a web form as shown below.

[Code]....

I dont think that I am posting the right information. Am i supposed to post just the information or do I post the the tags and the information/

View 2 Replies

Use The Web Request Class In .net To Post Some Xml?

Mar 11, 2010

I'm trying to use the web request class in vb.net to post some xml. On the reciving end, I keep getting an internal server error with the message: Missing Soap action header". I did some reasearch and saw that a firewall can strip out the soap action header so I tried running it with no firewall and got the same result. I tried adding a soap action header using the header command, and that didn't even get to the server to receive an error message.

[Code]...

View 1 Replies

.net - Creating A Sequence In Each Asp.net GET/POST Request?

Jun 2, 2012

I want to create an integer sequence in each page request.Here is my code:

Public Class Test
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load[code]....

My requirements are just created the sequence using VB.NET code and of no database help. The sequence must be started at 1 and incremented by 1. My attempt to solve this is by using STATIC variable within the Page_Load which can retain the sequence value.But someone told me that my approach is risky because it's not thread safe. Is that true? Or how do I create a sequence for each request that is free from any problems be it thread safe or others?

UPDATE: I attempted to solve the problem another way. But I'm not sure the thread safety of my new solution. Here is my code, the call to Singleton.Instance.Sequence function will generate a new sequence value:

Public NotInheritable Class Singleton
Private Sub New()
End Sub[code]......

View 2 Replies

Send A POST Request To Add Some Content To An API Box

Nov 11, 2010

I am trying to send a POST request to add some content to an API box. The rules are that the body format should be XML(values must be XML-escaped), HTTP Method (post), requires authentication(yes), request content(content-type: "application/xml". [code] Best practice is to incrementally add and remove changes to your entry list instead of deleting/recreating the entire list each time a change is necessary.New entries are placed at the top of the queue for polling and are processed in a LIFO manner.

View 2 Replies

VS 2008 How To Make A POST Request

Oct 8, 2009

I am using visual studio 8, using vb.net. I am trying without success to make a post request to a web form as shown below.

<?xml version="1.0" encoding="UTF-8"?><postBetOrder xmlns="urn:betfair:games:api:v1"marketId="2568540" round="1" currency="GBP"><betPlace><bidType>BACK</bidType><price>2.5</price><size>2.50</size><selectionId>658440</selectionId></betPlace>

[Code]...

I dont think that I am posting the right information. Am i supposed to post just the information or do I post the the tags and the information?

View 4 Replies

Download, Edit And Post HTTP Request?

Feb 15, 2012

is have a bot at the moment which basicly uses the browser to get around things and its really slow as the process which i need doing is repetitive. i need a really quick method. Can any1 post a sample script where it

Downloads HTTP source to text file or temp text box edits source strings as needed post to server (submit)

View 19 Replies

Http Post Request Through Httpwebrequest To Forum?

Mar 19, 2010

I'm creating an app that edit a post in a ipforum with httpwebrequest and httpwebresponse in vb.net.I use fiddler2 to get the post forms.I successfully create the code to connect to the site the authentication works well and i don't found problems. But to edit a post i don't find how to do it this is the request of the site taken from fiddler:

[Code]...

View 1 Replies

Send A POST HTTP Request To A Server?

Oct 12, 2010

How can I send a POST HTTP request to a server (in Visual Basic 2010) and then receive the reply into a string.

View 1 Replies

Send POST Body With HTTP Request?

May 3, 2010

I have used the WinHttp.WinHttpRequest object in VB6 to make HTTP POST requests many times. It works great: .Open the URL, then .SetRequestHeader (however many are needed) and then .Send the body. The .Send method makes the actual connection and sends everything to the server at once.How to I emulate this behavior in .NET? The examples I've tried with System.Net.HttpWebRequest open a stream with .GetRequestStream() and then write the body to the stream. Unfortunately, the server is responding immediately to the .GetRequestStream method and therefore never sees the POST body.I am obviously trying to connect up some legacy stuff here, but am having a hard time Googling the problem or finding another approach in .NET.

View 2 Replies

Send Post Request And Receive Response

Apr 6, 2011

When you search on google most of the examples are very vague, hopefully this thread can make it to the top and will help someone looking for the same info.to explain the code what it does is create a long string by concatenating all the values together stores it in the variable finalString and then hashes the string using the SHA5 algorithm. Then its supposed to send the string (finalString) as a post request to the url.The server im sending it to reads it this way and sends a response. [code]

View 1 Replies

Sending POST Request To Login To Website

Aug 20, 2010

I'd like to send a POST request to login to a website with my account. For an example, how would I login to this website using HttpWebRequest.. [URL]. It's for an application I'm building for my clan where you have to have an account on the forum to open the application, so if the login works it opens.

View 2 Replies

Doing A POST Request To Server And Getting Specific Cookie From Response

May 24, 2012

I'm trying to port an old VB.NET application to an Android application, but due to my lack of Java experience I am unable to find this one out. I have tried multiple solutions but to no avail.The idea is basically to do a POST request to 'url...' and getting the response cookies.[code]

View 2 Replies

HTTP Post Request - Content Length Error

Mar 1, 2012

i am trying to build, or better edit, my own HTTP Post Request Source Code. The main purpose if it is working, and i receive the data successfully but when i try to put a progressbar with it, it starts getting sticky, because the ContentLength will always stay -1. [Code]

View 4 Replies

VS 2010 Send An HTTP Request To A Server Using A POST Method

Dec 31, 2010

I am trying to send an HTTP Request to a server using a POST method. The problem comes from the PostData, which needs to be in Bytes form to be used by the UploadData function.

[Code]....

View 5 Replies

C# - My Post Request - Provides A High Bit Rate Quantum Number Generator Web Service

May 18, 2011

the page at [URL] provides a high bit rate quantum number generator web service and I'm trying to access that service.

However I could not manage to do so.

This is my current code:

CODE:

I'm having 403 forbidden error when I try to do a get request on [URL].

After debugging abit, I've realised that even though I've supplied a valid username and password, the response html that was sent after my POST request indicate that I was actually not logon to the system after my POST request.

Does anyone know why is this the case, and how may I work around it to call the service? Bump. can anyone get this to work or is the site just a scam?

View 3 Replies

Get Results To Post To One Row In A List Box?

Nov 20, 2009

i am trying to get my results to post to one row in a list box for each one but instead it just keep adding up with a million rows and adding each result properly,

Dim A08count As String
Dim A01count As String
Dim totalA08 As Integer

[Code].....

View 1 Replies

Asp.net - Results Of Request.Form If The Requested Input Is Blank

May 5, 2009

When I use Request.Form("myInput") and the input field "myInput" is blank, I get a server error.

How do I handle this?

Is there a way to check if "myInput" has not been filled?

View 3 Replies

Asp.net - LDAP User Attribute Request Returns Unusual Results?

May 31, 2012

I'm struggling to return user details from AD using LDAP, after i have authenticated that the user exists. I am using a simple auth method as follows:

Function AuthenticateUser(path As String, user As String, pass As String) As Boolean
Dim de As New DirectoryEntry(path, user, pass, AuthenticationTypes.Secure)
Try
Dim ds As DirectorySearcher = New DirectorySearcher(de)
Dim result As SearchResult = ds.FindOne()

[Code]...

the problem is that "distinguishedName" returns "DC=our-domain,DC=co,DC=uk" and "name" returns just "our-domain", not the name of the user that has just been auth'ed

Note: the displayName.text outputs are purely for debug purposes.I have tried various combos of requests but nothing seems to return USER details. ETA: to the security police: this is all within a https connection, I'm not sending passwords about in plain text!

View 1 Replies

C# - Custom "POST" Request To Skip Website Login Screen?

Sep 12, 2011

There's a certain website I need to access multiple times each day that requires me to enter my login name/password first, every time. To save some time, I copied-and-pasted the HTML source code and pre-populated the text fields with my info, then saved that to my desktop. Now I can just open that doc in my browser and click "submit" without having to type anything.

[Code]...

View 3 Replies

.net - Can't Return Dictionary(Of String, String) Via GET Ajax Web Request, Works With POST

Jun 23, 2009

I have the following web method:

<WebMethod()> _
<ScriptMethod(ResponseFormat:=ResponseFormat.Json, UseHttpGet:=True, XmlSerializeString:=True)> _

[Code].....

I wanted to use HttpGet here so that the result can be cached.

I tried every variation of calling this, but no luck. Is this possible with GET?

View 2 Replies

Make The Http "POST" Request To The Specific Spot?

Mar 18, 2011

I am trying to write this program that logs into this website. Now I figured out how to make the http "POST" request to the specific spot on the page which returns a "Successfully logged in" afterwards but once I make a request to another part of the page, it asks me to login (I look at the source code). I have been messing with Fiddler and I compared the a POST from my webbrowser to a POST from my program. I found the following lines to be in my browser POST and not in my program post:

[Code]...

I am assuming this has something to do with the cookie that I am suppose to get to be able to tell the website that I am logged in. If someone could point me in the right direction that would be great. I dont use XMLHTTPREQUEST in my program. I found it earlier on the msdn website but now I cant find a reference to it.I am also not good with term names and I just started learning VB and don't know much about cookies/HTTP requests and such, but that is why I am trying to learn.

View 2 Replies

Asp.net Mvc - Post Code Being Triggered On JQuery Load?

Jan 13, 2010

I have the following functions in my ProceduresControlller:

Function Add(ByVal bpid As Integer) As ActionResult
Return View(GetAvailableProcedures(bpid))
End Function[code].....

I'm loading the Add dialog via jQuery like so:

$("#dialog").load(
"/Procedures/Add",
{ bpid: 123 }[code]....

This is failing because it's calling the Post method (where "covered" can't be empty) instead of the Get. I tried decorating the Get with <AcceptVerbs(HttpVerbs.Get)>, but it doesn't change the outcome.how do I get it to use the Get? I realize I could change the names to not be ambiguous, but I want to know why it won't pick the Get if I'm only passing "bpid".

View 1 Replies

Load Multi Sql Statement Results Into A Dataset?

Mar 25, 2010

I've only dealt with firing a single SQL statement at a SQLServer table and returning a single result... easy....

however....

is there a way to fire a dual sql command and load the results into respective tables within a dataset?.. I'm thinking something along these lines (this code of course does not work)

Dim ds As New DataSet
Dim dt1 As DataTable = ds.Tables(0)
Dim dt2 As DataTable = ds.Tables(1)

[Code]....

View 3 Replies

Asp.net - Request() Versus Request.QueryString()?

Jul 5, 2010

I have recently started using Request("key") instead of Request.QueryString("key") to access my querystring values. However I have read that:

'Gets the specified object from the System.Web.HttpRequest.Cookies, System.Web.HttpRequest.Form, System.Web.HttpRequest.QueryString, System.Web.HttpRequest.ServerVariables'

Therefore, if I have a querystring key and cookie key which are the same, which value is returned?

View 1 Replies

How To Post A File Via HTTP Post

Jun 11, 2009

Having a problem with sending a file via HTTP post in vb.net. I am trying to mimic the following HTML so the vb.net does the same thing.[code]

View 4 Replies

Insert A PICTURE Into A Forum Post - Inserting Code Into A Forum Post?

Nov 25, 2008

<edit on 10th March 2010.>

Changed thread type to QUESTION. I was then able to mark AS ANSWER the relevent post which now also immediately follows this post and so it is easier to find as suggested by forum user j2associates .

<edit> It is also my 3rd post in this thread, the 8th one up, of my posts, from the bottom ( for now ), as the forum format has changed yet again.I will leave the rest of this post( as is ) purely for historical reasons. I have been on these forums long enough to see 3 forum changes. <edit> 19th May, 2010> Link added to a video on the next line of text.

[code]....

View 1 Replies

Send Data From A Windows Form To An Aspx Page And Send Back A Response - Request.Form Vs Request.BinaryRead?

Mar 29, 2012

Im trying to send data from a Windows Form to an aspx page and send back a response. Im running around in circles trying to make this work. The data im trying to send is 4 strings. So fare I have this in my code, using the build-in webclient in visual studio 2010, in the windows form sending to the aspx

[Code]...

View 2 Replies

Show The Final Results Instead Of The Results Real-time

Sep 28, 2010

I have a form that allows users to select file and then it reads the contents, parses the data and then executes a sql insert statement to add it to a database. What I am having issues with is showing real-time results. Currently, I have the import operation take place on the import form within the OnLoad event. The problem with this is it only shows the final results instead of the results real-time. Is there anyway to do this without creating a seperate thread and delegates?

View 1 Replies







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